mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 01:18:53 +00:00
505ef81422
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};
|