Add test cases that reproduce #7241.
[cabal.git] / cabal-testsuite / PackageTests / CCompilerOverride / foo.c
blob30892bef07e8d4419b4972fa73db02765b5b3b10
2 #ifndef NOERROR1
3 #error "NOERROR1 was not passed"
4 #endif
6 #ifndef NOERROR2
7 #error "NOERROR2 was not passed"
8 #endif
10 #ifndef NOERROR3
11 #error "NOERROR3 was not passed"
12 #endif
14 #ifndef NOERROR4
15 #error "NOERROR4 was not passed"
16 #endif
18 #ifndef NOERROR5
19 #error "NOERROR5 was not passed"
20 #endif
22 #ifndef NOERROR6
23 #error "NOERROR6 was not passed"
24 #endif
26 int foo(int x) {
27 return x + 42;