summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/value-initialization.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/value-initialization.cpp')
-rw-r--r--test/SemaCXX/value-initialization.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/value-initialization.cpp b/test/SemaCXX/value-initialization.cpp
index 29d866f..25d7084 100644
--- a/test/SemaCXX/value-initialization.cpp
+++ b/test/SemaCXX/value-initialization.cpp
@@ -1,10 +1,10 @@
// RUN: clang-cc -fsyntax-only -verify %s -std=c++0x
-struct A {
+struct A { // expected-error {{implicit default constructor for 'struct A' must explicitly initialize the const member 'i'}}
const int i; // expected-note {{declared at}}
virtual void f() { }
};
int main () {
- (void)A(); // expected-error {{cannot define the implicit default constructor for 'struct A', because const member 'i' cannot be default-initialized}}
+ (void)A(); // expected-note {{first required here}}
}
OpenPOWER on IntegriCloud