summaryrefslogtreecommitdiff
path: root/test/modularize/ProblemsExternC.modularize
blob: b91d7e593e340fbb88998263e44409fdc248e47a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# RUN: not modularize %s -x c++ 2>&1 | FileCheck %s

Inputs/IncludeInExtern.h

# CHECK: {{.*}}{{[/\\]}}Inputs{{[/\\]}}IncludeInExtern.h:2:3:
# CHECK-NEXT:   #include "Empty.h"
# CHECK-NEXT:   ^
# CHECK-NEXT: error: Include directive within extern "C" {}.
# CHECK-NEXT: {{.*}}{{[/\\]}}Inputs{{[/\\]}}IncludeInExtern.h:1:1:
# CHECK-NEXT: extern "C" {
# CHECK-NEXT: ^
# CHECK-NEXT: The "extern "C" {}" block is here.