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