OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
alignof1.C
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
}