diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-11-09 19:20:36 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-11-09 19:20:36 +0000 |
commit | 9cf6b59400ea7f29d650baad7e082e38ff3c8bb2 (patch) | |
tree | e2cec96e5f6f1c2ad60914bb531135cb317325c5 /clang/test | |
parent | 36d7c5f29b32d989640b33b800d763e9a11eda1e (diff) | |
download | bcm5719-llvm-9cf6b59400ea7f29d650baad7e082e38ff3c8bb2.tar.gz bcm5719-llvm-9cf6b59400ea7f29d650baad7e082e38ff3c8bb2.zip |
Add additional note to mark the cause of synthesized constructors. Mark
declaration invalid if the constructor can't be properly built. Addresses
remaining review comments from Fariborz for r86500.
llvm-svn: 86579
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CXX/temp/temp.spec/temp.expl.spec/p4.cpp | 2 | ||||
-rw-r--r-- | clang/test/SemaCXX/default-constructor-initializers.cpp | 6 | ||||
-rw-r--r-- | clang/test/SemaCXX/value-initialization.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/CXX/temp/temp.spec/temp.expl.spec/p4.cpp b/clang/test/CXX/temp/temp.spec/temp.expl.spec/p4.cpp index 0b83a1fee0f..ad0d5062136 100644 --- a/clang/test/CXX/temp/temp.spec/temp.expl.spec/p4.cpp +++ b/clang/test/CXX/temp/temp.spec/temp.expl.spec/p4.cpp @@ -26,7 +26,7 @@ IntHolder &test_X_IntHolderInt(X<IntHolder, int> xih) { xih.g(); // okay xih.f(); // expected-note{{instantiation}} - X<IntHolder, int>::Inner inner; + X<IntHolder, int>::Inner inner; // expected-note {{first required here}} return X<IntHolder, int>::value; // expected-note{{instantiation}} } diff --git a/clang/test/SemaCXX/default-constructor-initializers.cpp b/clang/test/SemaCXX/default-constructor-initializers.cpp index 48c90398635..6adcdca3e17 100644 --- a/clang/test/SemaCXX/default-constructor-initializers.cpp +++ b/clang/test/SemaCXX/default-constructor-initializers.cpp @@ -11,7 +11,7 @@ struct X2 : X1 { // expected-note {{'struct X2' declared here}} \ struct X3 : public X2 { // expected-error {{must explicitly initialize the base class 'struct X2'}} }; -X3 x3; +X3 x3; // expected-note {{first required here}} struct X4 { // expected-error {{must explicitly initialize the member 'x2'}} \ @@ -20,7 +20,7 @@ struct X4 { // expected-error {{must explicitly initialize the member 'x2'}} \ X2 & rx2; // expected-note {{declared at}} }; -X4 x4; +X4 x4; // expected-note {{first required here}} struct Y1 { // has no implicit default constructor @@ -52,5 +52,5 @@ struct Z1 { // expected-error {{must explicitly initialize the reference member volatile int v1; }; -Z1 z1; +Z1 z1; // expected-note {{first required here}} diff --git a/clang/test/SemaCXX/value-initialization.cpp b/clang/test/SemaCXX/value-initialization.cpp index 3452883697a..25d708494b1 100644 --- a/clang/test/SemaCXX/value-initialization.cpp +++ b/clang/test/SemaCXX/value-initialization.cpp @@ -6,5 +6,5 @@ struct A { // expected-error {{implicit default constructor for 'struct A' must }; int main () { - (void)A(); + (void)A(); // expected-note {{first required here}} } |