Test for C++ pch.

pull/15/head
Jussi Pakkanen 12 years ago
parent 3e9416fc4a
commit 18ad46d6ef
  1. 3
      test cases/14 cxx pch/builder.txt
  2. 1
      test cases/14 cxx pch/pch/prog.hh
  3. 8
      test cases/14 cxx pch/prog.cc

@ -0,0 +1,3 @@
project('c++ pch test', 'c++')
exe = executable('prog', 'prog.cc')
exe.pch('pch/prog.hh')

@ -0,0 +1 @@
#include<iostream>

@ -0,0 +1,8 @@
void func() {
std::cout << "This is a function that fails to compile if iostream is not included."
<< std::endl;
}
int main(int argc, char **argv) {
return 0;
}
Loading…
Cancel
Save