diff options
Diffstat (limited to 'test/SemaCXX/generalized-initializers.cpp')
-rw-r--r-- | test/SemaCXX/generalized-initializers.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/SemaCXX/generalized-initializers.cpp b/test/SemaCXX/generalized-initializers.cpp index cf1b61e683..5a420c6fc5 100644 --- a/test/SemaCXX/generalized-initializers.cpp +++ b/test/SemaCXX/generalized-initializers.cpp @@ -40,25 +40,9 @@ namespace std { namespace integral { - void initialization() { - { const int a{}; static_assert(a == 0, ""); } - { const int a = {}; static_assert(a == 0, ""); } - { const int a{1}; static_assert(a == 1, ""); } - { const int a = {1}; static_assert(a == 1, ""); } - { const int a{1, 2}; } // expected-error {{excess elements}} - { const int a = {1, 2}; } // expected-error {{excess elements}} - { const short a{100000}; } // expected-error {{cannot be narrowed}} - { const short a = {100000}; } // expected-error {{cannot be narrowed}} - } - int function_call() { void takes_int(int); takes_int({1}); - - int ar[10]; - (void) ar[{1}]; // expected-error {{initializer list is illegal with the built-in index operator}} - - return {1}; } void inline_init() { @@ -76,11 +60,6 @@ namespace integral { for (int i : {1, 2, 3, 4}) {} } - struct A { - int i; - A() : i{1} {} - }; - } namespace objects { |