mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 17:46:49 +00:00

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
8 lines
123 B
C++
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};
|