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
c: fix ICE when forming composite type for two structures / unions [PR117548]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
array13.C
blob
3bc152ce4f87a67b410fffd5f4dc8ad3f8996e7b
1
// PR c++/20208
2
// { dg-do run }
3
// { dg-options "-O2" }
4
5
extern "C" void abort();
6
7
template <typename T>
8
inline void *Foo (T arg) { return &arg[0]; }
9
10
int main () {
11
int bry[2];
12
if (Foo<int[2]>(bry) != bry)
13
abort();
14
}