diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-12-20 22:01:25 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-12-20 22:01:25 +0000 |
commit | 39c778b44348c530ef7487915f60e823d2fbc383 (patch) | |
tree | b393891a51975dc24e935416913b4ea3dbe59fd0 /clang/test/SemaCXX/direct-initializer.cpp | |
parent | 1b6d10555ff70efcc44b8bf25d4755d88a15d48c (diff) | |
download | bcm5719-llvm-39c778b44348c530ef7487915f60e823d2fbc383.tar.gz bcm5719-llvm-39c778b44348c530ef7487915f60e823d2fbc383.zip |
Switch default-initialization of variables of class type (or array thereof) over to InitializationSequence. I could swear that this fixes a PR somewhere, but I couldn't figure out which one
llvm-svn: 91796
Diffstat (limited to 'clang/test/SemaCXX/direct-initializer.cpp')
-rw-r--r-- | clang/test/SemaCXX/direct-initializer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/SemaCXX/direct-initializer.cpp b/clang/test/SemaCXX/direct-initializer.cpp index 0930ff798fb..1a87a3edf33 100644 --- a/clang/test/SemaCXX/direct-initializer.cpp +++ b/clang/test/SemaCXX/direct-initializer.cpp @@ -20,9 +20,9 @@ public: X(float, Y); // expected-note{{candidate function}} }; -class Z { +class Z { // expected-note{{candidate function}} public: - Z(int); + Z(int); // expected-note{{candidate function}} }; void g() { @@ -32,7 +32,7 @@ void g() { Y y(1.0); X x4(3.14, y); - Z z; // expected-error{{no matching constructor for initialization of 'z'}} + Z z; // expected-error{{no matching constructor for initialization of 'class Z'}} } struct Base { |