1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/FrontendC++/2003-08-31-StructLayout.cpp
Dan Gohman bf08e82d8e Remove obsolete -f flags.
llvm-svn: 79992
2009-08-25 15:38:29 +00:00

17 lines
327 B
C++

// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
// There is a HOLE in the derived2 object due to not wanting to place the two
// baseclass instances at the same offset!
struct baseclass {};
class derived1 : public baseclass {
void * NodePtr;
};
class derived2 : public baseclass {
derived1 current;
};
derived2 RI;