diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-01-13 20:50:16 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-01-13 20:50:16 +0200 |
commit | 3e9416fc4ae7f37f3a4f07c8402a95705fa176ad (patch) | |
tree | e876bb37d9f25f07688b50240701ee0499b94023 /test cases | |
parent | 57015296328a4fe5c8bad5410a3b4ba67637fbb6 (diff) | |
download | meson-3e9416fc4ae7f37f3a4f07c8402a95705fa176ad.zip meson-3e9416fc4ae7f37f3a4f07c8402a95705fa176ad.tar.gz meson-3e9416fc4ae7f37f3a4f07c8402a95705fa176ad.tar.bz2 |
Added support for precompiled headers.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/13 pch/builder.txt | 4 | ||||
-rw-r--r-- | test cases/13 pch/pch/prog.h | 1 | ||||
-rw-r--r-- | test cases/13 pch/prog.c | 7 |
3 files changed, 12 insertions, 0 deletions
diff --git a/test cases/13 pch/builder.txt b/test cases/13 pch/builder.txt new file mode 100644 index 0000000..a95aafb --- /dev/null +++ b/test cases/13 pch/builder.txt @@ -0,0 +1,4 @@ +project('pch test', 'c') + +exe = executable('prog', 'prog.c') +exe.pch('pch/prog.h') diff --git a/test cases/13 pch/pch/prog.h b/test cases/13 pch/pch/prog.h new file mode 100644 index 0000000..354499a --- /dev/null +++ b/test cases/13 pch/pch/prog.h @@ -0,0 +1 @@ +#include<stdio.h> diff --git a/test cases/13 pch/prog.c b/test cases/13 pch/prog.c new file mode 100644 index 0000000..995bb3f --- /dev/null +++ b/test cases/13 pch/prog.c @@ -0,0 +1,7 @@ +void func() { + fprintf(stdout, "This is a function that fails if stdio is not #included.\n"); +} + +int main(int argc, char **argv) { + return 0; +} |