blob: 3be7ad1c1c89e9195e61d8ca0f6030b4c524a46e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
set -e
cat <<'EOF' > expected
include depth limit exceeded
EOF
# Create circular include files
cat <<'EOF' > a.h
#include "b.h"
int a() { return 1; }
EOF
cat <<'EOF' > b.h
#include "a.h"
int b() { return 2; }
EOF
bash ../../test_compile_error.sh <<'EOF'
#include "a.h"
int main() {
a() + b();
return 0;
}
EOF
|