39 lines
1.6 KiB
C
39 lines
1.6 KiB
C
// RUN: not %clang %s -S -o - 2>&1 | FileCheck %s
|
|
// CHECK: In file included from {{.*}}SourceLocationsOverflow.c
|
|
// CHECK-NEXT: inc1.h{{.*}}: fatal error: sorry, this include generates a translation unit too large for Clang to process.
|
|
// CHECK-NEXT: #include "inc2.h"
|
|
// CHECK-NEXT: ^
|
|
// 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)
|
|
// CHECK-NEXT: {{.*}}inc2.h:1:1: note: file entered 214{{..}} times using 214{{.......}}B of space
|
|
// CHECK-NEXT: /*.................................................................................................
|
|
// CHECK-NEXT: ^
|
|
// CHECK-NEXT: {{.*}}inc1.h:1:1: note: file entered 15 times using 39{{....}}B of space
|
|
// CHECK-NEXT: #include "inc2.h"
|
|
// CHECK-NEXT: ^
|
|
// CHECK-NEXT: <built-in>:1:1: note: file entered {{.*}} times using {{.*}}B of space
|
|
// CHECK-NEXT: # {{.*}}
|
|
// CHECK-NEXT: ^
|
|
// CHECK-NEXT: {{.*}}SourceLocationsOverflow.c:1:1: note: file entered 1 time using {{.*}}B of space
|
|
// CHECK-NEXT: // RUN: not %clang %s -S -o - 2>&1 | FileCheck %s
|
|
// CHECK-NEXT: ^
|
|
// CHECK-NEXT: 1 error generated.
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|
|
#include "Inputs/inc1.h"
|