repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
ext
/
alignof1.C
blob
36661c1f1e9b98c75649ebe353a40fed0c5d1b46
1
// { dg-do run }
2
3
// Copyright (C) 2002 Free Software Foundation, Inc.
4
// Contributed by Gabriel Dos Reis <gdr@codesourcery.com>, 2002-07-20
5
// Bug PR/7363.
6
7
template<typename T>
8
int my_alignof()
9
{
10
return __alignof__ (T);
11
}
12
13
template<typename>
14
struct X { };
15
16
int main()
17
{
18
return !my_alignof<X<void> >();
19
}