aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/builtin4.C
blob: 7d6c473dc8459ea1faf7a3dd075d4646019d3146 (plain)
1
2
3
4
5
6
7
8
9
10
// Verify that builtin is used when declared in global namespace

// { dg-do compile }
// { dg-options "-Wall" }

extern "C" int printf(const char*,...);

void foo() {
  printf("%d"); 		// { dg-warning "too few arguments" }
}