FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / mangle2.C
blob2a8065ec482cf73cafb587dccc86a7295cded441
1 // Test for overloaded operators in "C" linkage
2 // Build don't link:
4 extern "C" {
5 typedef struct b
7   int a;
8 } c;
10 extern const c z;
12 inline bool operator!=(const c& x, const c& y)
14   return x.a != y.a;
18 void foo();
20 void bar(c x)
22   if (x != z)
23     foo();