summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/cxx98-compat.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-02-26 23:49:01 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-02-26 23:49:01 +0000
commit2fbb3d84a218c9ed4716673028f170691ddb977c (patch)
treecf97dc82c88cf4089502cb43ebd4e83753683725 /clang/test/SemaCXX/cxx98-compat.cpp
parent9a6403a9ded5030aa12632afdfc89f59f4f43762 (diff)
downloadbcm5719-llvm-2fbb3d84a218c9ed4716673028f170691ddb977c.tar.gz
bcm5719-llvm-2fbb3d84a218c9ed4716673028f170691ddb977c.zip
Tests for r151508.
llvm-svn: 151509
Diffstat (limited to 'clang/test/SemaCXX/cxx98-compat.cpp')
-rw-r--r--clang/test/SemaCXX/cxx98-compat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/cxx98-compat.cpp b/clang/test/SemaCXX/cxx98-compat.cpp
index 12b95765e0f..8c15f5adc1e 100644
--- a/clang/test/SemaCXX/cxx98-compat.cpp
+++ b/clang/test/SemaCXX/cxx98-compat.cpp
@@ -45,6 +45,8 @@ int InitList() {
(void)int{}; // expected-warning {{generalized initializer lists are incompatible with C++98}} \
// expected-warning {{scalar initialized from empty initializer list is incompatible with C++98}}
int x { 0 }; // expected-warning {{generalized initializer lists are incompatible with C++98}}
+ S<int> s = {}; // ok, aggregate
+ s = {}; // expected-warning {{generalized initializer lists are incompatible with C++98}}
return { 0 }; // expected-warning {{generalized initializer lists are incompatible with C++98}}
}
OpenPOWER on IntegriCloud