projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new testcase for PR1296
[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 | 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