llvm-capstone/clang/test/SemaCXX/aggregate-init-cxx98.cpp
Richard Smith 505ef81422 Fix defaulted-functions-in-C++98 extension to give the functions the same
effect they would have in C++11. In particular, they do not prevent
value-initialization from performing zero-initialization, nor do they prevent a
struct from being an aggregate.

llvm-svn: 290229
2016-12-21 01:57:02 +00:00

8 lines
123 B
C++

// RUN: %clang_cc1 -std=c++98 -verify %s
struct A {
A() = default; // expected-warning {{C++11}}
int n;
};
A a = {0};