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++.dg
/
ext
/
weak3.C
blob
360821acc48623d67d4ce1b19929787d9460a6b4
1
// PR c++/20961
2
// Test for #pragma weak and __attribute__((weak)) being used together.
3
// { dg-do compile }
4
// { dg-require-weak "" }
5
// { dg-options "" }
6
7
// { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?_Z3foov" } }
8
9
int foo ();
10
#pragma weak foo
11
12
int
13
__attribute__((weak))
14
foo ()
15
{
16
return 0;
17
}