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
* doc/extend.texi (Loop-Specific Pragmas): Document pragma GCC unroll.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
tmplattr4.C
blob
3d5c6b7d5fbd718767521669b0320a72c9333519
1
// PR c++/7586
2
// { dg-do run }
3
4
template<typename T>
5
int f()
6
{
7
typedef unsigned char type[sizeof (T)]
8
__attribute((aligned(__alignof(T))));
9
10
return __alignof (type);
11
}
12
13
int main()
14
{
15
if (f<int>() == __alignof (int))
16
return 0;
17
else
18
return 1;
19
}