tests/C_C++/is_extern_c_retarded.c
2024-12-10 20:40:17 +01:00

10 lines
231 B
C

/* This compiles with gcc, but not g++.
* `extern "C"` apparently only applies to calling conventions.
* It's nothing horrid, but I'm still disappointed.
*/
extern "C" {
signed main() {
int * a = malloc(10);
}
}