llvm-for-llvmta/tools/clang/test/SemaCXX/aggregate-init-cxx98.cpp

8 lines
123 B
C++
Raw Normal View History

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