projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Clean up C++ restrict test cases and add a test for restrict qualified methods.
[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