summaryrefslogtreecommitdiff
path: root/test/SemaCXX/cxx0x-initializer-scalars.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/cxx0x-initializer-scalars.cpp')
-rw-r--r--test/SemaCXX/cxx0x-initializer-scalars.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/SemaCXX/cxx0x-initializer-scalars.cpp b/test/SemaCXX/cxx0x-initializer-scalars.cpp
index 65b57a5584ab..90b11f3a9e23 100644
--- a/test/SemaCXX/cxx0x-initializer-scalars.cpp
+++ b/test/SemaCXX/cxx0x-initializer-scalars.cpp
@@ -91,13 +91,13 @@ namespace integral {
}
void edge_cases() {
- int a({0}); // expected-error {{list-initializer for non-class type 'int' must not be parenthesized}}
- (void) int({0}); // expected-error {{list-initializer for non-class type 'int' must not be parenthesized}}
- new int({0}); // expected-error {{list-initializer for non-class type 'int' must not be parenthesized}}
+ int a({0}); // expected-error {{cannot initialize non-class type 'int' with a parenthesized initializer list}}
+ (void) int({0}); // expected-error {{cannot initialize non-class type 'int' with a parenthesized initializer list}}
+ new int({0}); // expected-error {{cannot initialize non-class type 'int' with a parenthesized initializer list}}
- int *b({0}); // expected-error {{list-initializer for non-class type 'int *' must not be parenthesized}}
+ int *b({0}); // expected-error {{cannot initialize non-class type 'int *' with a parenthesized initializer list}}
typedef int *intptr;
- int *c = intptr({0}); // expected-error {{list-initializer for non-class type 'intptr' (aka 'int *') must not be parenthesized}}
+ int *c = intptr({0}); // expected-error {{cannot initialize non-class type 'intptr' (aka 'int *') with a parenthesized initializer list}}
}
template<typename T> void dependent_edge_cases() {