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
Don't warn when alignment of global common data exceeds maximum alignment.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.dg
/
attr_used1.d
blob
66f33fbab004006795e5317d0a4acafeb916194f
1
// { dg-do compile }
2
// { dg-options "-O2" }
3
4
import
gcc
.
attributes
;
5
6
int
func
()
7
{
8
int
nested_function
()
@used
9
{
10
return
1
;
11
}
12
@used
int
var
=
0
;
// { dg-warning ".used. attribute ignored" }
13
return
var
;
14
}
15
16
// { dg-final { scan-assembler "nested_function" } }