2013-09-19 02:19:43 +08:00
|
|
|
# RUN: not modularize %s -x c++ 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
Inputs/IncludeInExtern.h
|
|
|
|
|
2013-09-20 22:44:20 +08:00
|
|
|
# CHECK: {{.*}}{{[/\\]}}Inputs{{[/\\]}}IncludeInExtern.h:2:3:
|
2013-09-19 02:19:43 +08:00
|
|
|
# CHECK-NEXT: #include "Empty.h"
|
|
|
|
# CHECK-NEXT: ^
|
|
|
|
# CHECK-NEXT: error: Include directive within extern "C" {}.
|
2013-09-20 22:44:20 +08:00
|
|
|
# CHECK-NEXT: {{.*}}{{[/\\]}}Inputs{{[/\\]}}IncludeInExtern.h:1:1:
|
2013-09-19 02:19:43 +08:00
|
|
|
# CHECK-NEXT: extern "C" {
|
|
|
|
# CHECK-NEXT: ^
|
|
|
|
# CHECK-NEXT: The "extern "C" {}" block is here.
|