Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/variadic-value1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/52796 |
2 // { dg-do run { target c++11 } } | |
3 | |
4 inline void *operator new(__SIZE_TYPE__ s, void *p) { return p; } | |
5 | |
6 struct A | |
7 { | |
8 int i; | |
9 template<class... Ts> | |
10 A(Ts&&... ts): i(ts...) { } | |
11 }; | |
12 | |
13 static union { | |
14 unsigned char c[sizeof(A)]; | |
15 int i; | |
16 }; | |
17 | |
18 int main() | |
19 { | |
20 i = 0xdeadbeef; | |
21 new(c) A; | |
22 if (i != 0) | |
23 __builtin_abort(); | |
24 } |