summaryrefslogtreecommitdiffstats
path: root/tests/cpp-compiler/c-compile-link-error.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpp-compiler/c-compile-link-error.c')
-rw-r--r--tests/cpp-compiler/c-compile-link-error.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/cpp-compiler/c-compile-link-error.c b/tests/cpp-compiler/c-compile-link-error.c
new file mode 100644
index 000000000..08b93a38b
--- /dev/null
+++ b/tests/cpp-compiler/c-compile-link-error.c
@@ -0,0 +1,12 @@
+//TEST(smoke):CPP_COMPILER_EXECUTE:
+
+#include <stdlib.h>
+#include <stdio.h>
+
+extern int thing;
+
+int main(int argc, char** argv)
+{
+ printf("Hello World %d!\n", thing);
+ return 0;
+}