diff options
| author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-03-20 21:24:03 +0000 |
|---|---|---|
| committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-03-20 21:24:03 +0000 |
| commit | 6db0b1bfed0ef26365705fb8dd228a84f5e5ec10 (patch) | |
| tree | b7d37079d3a3d988fadd7e55bc60223a979c5ca0 /clang/test/SemaCXX/cxx98-compat.cpp | |
| parent | 61b33f7464b142fae2d3a8e35de93dded80d4c2b (diff) | |
| download | bcm5719-llvm-6db0b1bfed0ef26365705fb8dd228a84f5e5ec10.tar.gz bcm5719-llvm-6db0b1bfed0ef26365705fb8dd228a84f5e5ec10.zip | |
Fix the other place where C++98 work for initializer lists was necessary.
llvm-svn: 153129
Diffstat (limited to 'clang/test/SemaCXX/cxx98-compat.cpp')
| -rw-r--r-- | clang/test/SemaCXX/cxx98-compat.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/cxx98-compat.cpp b/clang/test/SemaCXX/cxx98-compat.cpp index 211f11cc597..fd70875fc81 100644 --- a/clang/test/SemaCXX/cxx98-compat.cpp +++ b/clang/test/SemaCXX/cxx98-compat.cpp @@ -50,6 +50,10 @@ int InitList(int i = {}) { // expected-warning {{generalized initializer lists a s = {}; // expected-warning {{generalized initializer lists are incompatible with C++98}} return { 0 }; // expected-warning {{generalized initializer lists are incompatible with C++98}} } +struct DelayedDefaultArgumentParseInitList { + void f(int i = {1}) { // expected-warning {{generalized initializer lists are incompatible with C++98}} + } +}; int operator"" _hello(const char *); // expected-warning {{literal operators are incompatible with C++98}} |

