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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
g++.dg
/
ext
/
builtin3.C
blob
3d06dd7534ae146e63b529de21cfc74bef71cbf0
1
// Verify that declaring builtin in namespace std doesn't give us
2
// declaration in global namespace
3
4
// { dg-do compile }
5
// { dg-options "" }
6
7
namespace std {
8
extern "C" int printf(char*, ...);
9
}
10
11
void foo() {
12
printf("abc"); // { dg-error "not declared" }
13
}