1// RUN: rm -rf %t 2// RUN: not %clang_cc1 -fmodules -fmodules-cache-path=%t -I %S/Inputs/malformed -DHEADER="a1.h" %s 2>&1 | FileCheck %s --check-prefix=CHECK-A 3// RUN: not %clang_cc1 -fmodules -fmodules-cache-path=%t -I %S/Inputs/malformed -DHEADER="b1.h" %s 2>&1 | FileCheck %s --check-prefix=CHECK-B 4 5#define STR2(x) #x 6#define STR(x) STR2(x) 7#include STR(HEADER) 8 9// CHECK-A: While building module 'malformed_a' 10// CHECK-A: a1.h:1:{{.*}} error: expected '}' 11// CHECK-A: a1.h:1:{{.*}} note: to match this '{' 12// 13// CHECK-A: While building module 'malformed_a' 14// CHECK-A: a2.h:1:{{.*}} error: extraneous closing brace 15 16// CHECK-B: While building module 'malformed_b' 17// CHECK-B: b1.h:2:{{.*}} error: expected '}' 18// CHECK-B: b1.h:1:{{.*}} note: to match this '{' 19// CHECK-B: b1.h:3:{{.*}} error: extraneous closing brace ('}') 20// 21// CHECK-B: While building module 'malformed_b' 22// CHECK-B: b2.h:1:{{.*}} error: redefinition of 'g' 23// CHECK-B: b2.h:1:{{.*}} note: previous definition is here 24