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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
alignof.C
blob
d6af268412d5debd23dbb3847dbc26652e96f290
1
// { dg-do run }
2
extern "C" void abort();
3
4
struct S
5
{
6
char c;
7
double d;
8
};
9
10
11
template <class T>
12
void foo(T)
13
{
14
if (__alignof__(T) != __alignof__(S))
15
abort();
16
}
17
18
19
int main()
20
{
21
foo(S());
22
}