llvm-project/clang/test/SemaCXX/value-initialization.cpp
John McCall 85f9055955 When pretty-printing tag types, only print the tag if we're in C (and
therefore not creating ElaboratedTypes, which are still pretty-printed
with the written tag).

Most of these testcase changes were done by script, so don't feel too
sorry for my fingers.

llvm-svn: 98149
2010-03-10 11:27:22 +00:00

11 lines
330 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
struct A { // expected-error {{implicit default constructor for 'A' must explicitly initialize the const member 'i'}}
const int i; // expected-note {{declared at}}
virtual void f() { }
};
int main () {
(void)A(); // expected-note {{first required here}}
}