repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
variadic-value1.C
blob
179919a5bc763606263531f2a61e263b249b7d00
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
}