summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/cxx98-compat.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2012-03-20 21:24:03 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2012-03-20 21:24:03 +0000
commitca8937111cccdbf7d17c349487a332d6c7c97f91 (patch)
treeb9206332356f24bd032dfa8f99ae5fdc909cd4f3 /test/SemaCXX/cxx98-compat.cpp
parent452eac1fd71bc13c23eb034f5f66281ae27cf817 (diff)
Fix the other place where C++98 work for initializer lists was necessary.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/cxx98-compat.cpp')
-rw-r--r--test/SemaCXX/cxx98-compat.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaCXX/cxx98-compat.cpp b/test/SemaCXX/cxx98-compat.cpp
index 211f11cc59..fd70875fc8 100644
--- a/test/SemaCXX/cxx98-compat.cpp
+++ b/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}}