summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/cxx0x-initializer-scalars.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/cxx0x-initializer-scalars.cpp')
-rw-r--r--clang/test/SemaCXX/cxx0x-initializer-scalars.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/cxx0x-initializer-scalars.cpp b/clang/test/SemaCXX/cxx0x-initializer-scalars.cpp
index 7d2b5b3ab9f..49f53b60572 100644
--- a/clang/test/SemaCXX/cxx0x-initializer-scalars.cpp
+++ b/clang/test/SemaCXX/cxx0x-initializer-scalars.cpp
@@ -25,7 +25,7 @@ namespace integral {
}
void inline_init() {
- (void) int{1};
+ auto v = int{1};
(void) new int{1};
}
@@ -59,5 +59,7 @@ namespace integral {
void edge_cases() {
// FIXME: very poor error message
int a({0}); // expected-error {{cannot initialize}}
+ (void) int({0}); // expected-error {{functional-style cast}}
+ new int({0}); // expected-error {{cannot initialize}}
}
}
OpenPOWER on IntegriCloud