new testcase to verify that we have field sensitive alias analysis info. This
[oota-llvm.git] / test / C++Frontend / 2003-11-09-ConstructorTypeSafety.cpp.tr
1 // The code generated for this testcase should be completely typesafe!
2 // RUN: %llvmgcc -xc++ -S -o - %s | not grep ' cast '
3
4 struct contained {
5   unsigned X;
6   contained();
7 };
8
9 struct base {
10   unsigned A, B;
11 };
12
13 struct derived : public base {
14   contained _M_value_field;
15 };
16
17 int test() {
18   derived X;
19 }
20