diff options
author | John McCall <rjmccall@apple.com> | 2010-03-10 11:27:22 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-03-10 11:27:22 +0000 |
commit | 85f90559550563863522a58a87fdc4e46e95794b (patch) | |
tree | 60f75b5419f63aa12806b5720863118e80ee658e /clang/test/SemaCXX/default-constructor-initializers.cpp | |
parent | e35eabdd69d397db32c0b5b29a96fbcacdd6ea18 (diff) | |
download | bcm5719-llvm-85f90559550563863522a58a87fdc4e46e95794b.tar.gz bcm5719-llvm-85f90559550563863522a58a87fdc4e46e95794b.zip |
When pretty-printing tag types, only print the tag if we're in C (and
therefore not creating ElaboratedTypes, which are still pretty-printed
with the written tag).
Most of these testcase changes were done by script, so don't feel too
sorry for my fingers.
llvm-svn: 98149
Diffstat (limited to 'clang/test/SemaCXX/default-constructor-initializers.cpp')
-rw-r--r-- | clang/test/SemaCXX/default-constructor-initializers.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/default-constructor-initializers.cpp b/clang/test/SemaCXX/default-constructor-initializers.cpp index 4269991adec..b40b133a554 100644 --- a/clang/test/SemaCXX/default-constructor-initializers.cpp +++ b/clang/test/SemaCXX/default-constructor-initializers.cpp @@ -4,12 +4,11 @@ struct X1 { // has no implicit default constructor X1(int); }; -struct X2 : X1 { // expected-note {{'struct X2' declared here}} \ - // expected-note {{'struct X2' declared here}} +struct X2 : X1 { // expected-note 2 {{'X2' declared here}} X2(int); }; -struct X3 : public X2 { // expected-error {{must explicitly initialize the base class 'struct X2'}} +struct X3 : public X2 { // expected-error {{implicit default constructor for 'X3' must explicitly initialize the base class 'X2' which does not have a default constructor}} }; X3 x3; // expected-note {{first required here}} |