[libc++][NFC] Remove trailing whitespace from release notes
[llvm-project.git] / clang / test / CXX / basic / basic.start / basic.start.init / p2.cpp
blob36158210ac93067cdee66db9554c670571cbd82e
1 // RUN: %clang_cc1 -verify %s -pedantic-errors -std=c++11
2 // RUN: %clang_cc1 -verify %s -pedantic-errors -std=c++14
3 // expected-no-diagnostics
5 struct foo_t {
6 union {
7 int i;
8 volatile int j;
9 } u;
12 __attribute__((__require_constant_initialization__))
13 static const foo_t x = {{0}};
15 union foo_u {
16 int i;
17 volatile int j;
20 __attribute__((__require_constant_initialization__))
21 static const foo_u y = {0};