aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/c2.C
blob: ba7f0ed0d55965567d09233e8706817416e720f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PRMS Id: 3134
// g++ understands C redeclaration semantics.  Sun CC 2.0.1 doesn't.
// Special g++ Options:
// Build don't link:

extern "C" {
  int foo();
  int foo(int);

  int bar(int);
  int bar();
}

main()
{
  foo (1);
  bar (1);
}