blob: d4bc3535139ab4dc73b205cde37c1db0e1707198 [file] [log] [blame]
John Thompson74083922013-09-18 18:19:43 +00001# RUN: not modularize %s -x c++ 2>&1 | FileCheck %s
2
3Inputs/IncludeInNamespace.h
4
John Thompsona2b66872013-09-20 14:44:20 +00005# CHECK: {{.*}}{{[/\\]}}Inputs{{[/\\]}}IncludeInNamespace.h:2:3:
John Thompson74083922013-09-18 18:19:43 +00006# CHECK-NEXT: #include "Empty.h"
7# CHECK-NEXT: ^
8# CHECK-NEXT: error: Include directive within namespace MyNamespace {}.
John Thompsona2b66872013-09-20 14:44:20 +00009# CHECK-NEXT: {{.*}}{{[/\\]}}Inputs{{[/\\]}}IncludeInNamespace.h:1:1:
John Thompson74083922013-09-18 18:19:43 +000010# CHECK-NEXT: namespace MyNamespace {
11# CHECK-NEXT: ^
12# CHECK-NEXT: The "namespace MyNamespace {}" block is here.