Fix a buggy constant folding transformation when handling aliases.
[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 | llvm-as | opt -die | llvm-dis | \
3 // RUN:    notcast
4
5 struct contained {
6   unsigned X;
7   contained();
8 };
9
10 struct base {
11   unsigned A, B;
12 };
13
14 struct derived : public base {
15   contained _M_value_field;
16 };
17
18 int test() {
19   derived X;
20 }
21