Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Lexer / SourceLocationsOverflow.c
blobc42f648fedf5018600420531c31ef0db272a083f
1 // RUN: not %clang %s -S -o - 2>&1 | FileCheck %s
2 // CHECK: In file included from {{.*}}SourceLocationsOverflow.c
3 // CHECK-NEXT: inc1.h{{.*}}: fatal error: sorry, the translation unit is too large for Clang to process: ran out of source locations
4 // CHECK-NEXT: #include "inc2.h"
5 // CHECK-NEXT: ^
6 // CHECK-NEXT: note: 214{{.......}}B in local locations, 0B in locations loaded from AST files, for a total of 214{{.......}}B (99% of available space)
7 // CHECK-NEXT: {{.*}}inc2.h:1:1: note: file entered 214{{..}} times using 214{{.......}}B of space
8 // CHECK-NEXT: /*.................................................................................................
9 // CHECK-NEXT: ^
10 // CHECK-NEXT: {{.*}}inc1.h:1:1: note: file entered 15 times using 39{{....}}B of space
11 // CHECK-NEXT: #include "inc2.h"
12 // CHECK-NEXT: ^
13 // CHECK-NEXT: <built-in>:1:1: note: file entered {{.*}} times using {{.*}}B of space
14 // CHECK-NEXT: # {{.*}}
15 // CHECK-NEXT: ^
16 // CHECK-NEXT: {{.*}}SourceLocationsOverflow.c:1:1: note: file entered 1 time using {{.*}}B of space
17 // CHECK-NEXT: // RUN: not %clang %s -S -o - 2>&1 | FileCheck %s
18 // CHECK-NEXT: ^
19 // CHECK-NEXT: 1 error generated.
20 #include "Inputs/inc1.h"
21 #include "Inputs/inc1.h"
22 #include "Inputs/inc1.h"
23 #include "Inputs/inc1.h"
24 #include "Inputs/inc1.h"
25 #include "Inputs/inc1.h"
26 #include "Inputs/inc1.h"
27 #include "Inputs/inc1.h"
28 #include "Inputs/inc1.h"
29 #include "Inputs/inc1.h"
30 #include "Inputs/inc1.h"
31 #include "Inputs/inc1.h"
32 #include "Inputs/inc1.h"
33 #include "Inputs/inc1.h"
34 #include "Inputs/inc1.h"
35 #include "Inputs/inc1.h"
36 #include "Inputs/inc1.h"
37 #include "Inputs/inc1.h"
38 #include "Inputs/inc1.h"