| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-additional-options "-Wno-error=pedantic" } |
| 3 |
|
| 4 |
/* Check if entry points get implicit C linkage. If they don't, compiler will |
| 5 |
* error on incompatible declarations */ |
| 6 |
|
| 7 |
int main(); |
| 8 |
extern "C" int main(); // { dg-warning "linkage specification" } |
| 9 |
|
| 10 |
#ifdef __MINGW32__ |
| 11 |
|
| 12 |
int wmain(); |
| 13 |
extern "C" int wmain(); |
| 14 |
|
| 15 |
int DllMain(); |
| 16 |
extern "C" int DllMain(); |
| 17 |
|
| 18 |
int WinMain(); |
| 19 |
extern "C" int WinMain(); |
| 20 |
|
| 21 |
int wWinMain(); |
| 22 |
extern "C" int wWinMain(); |
| 23 |
|
| 24 |
#endif |
| 25 |
|