brintos

brintos / llvm-project-archived public Read only

0
0
Text · 638 B · d736022 Raw
13 lines · plain
1// RUN: rm -rf %t2// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I%S/Inputs %s -verify3// RUN: %clang_cc1 -fmodules-cache-path=%t -fimplicit-module-maps -I%S/Inputs %s -verify4 5#include "cxx-header.h"6void includeNotAtTopLevel() { // expected-note {{function 'includeNotAtTopLevel' begins here}}7  #include "cxx-header.h" // expected-error {{redundant #include of module 'cxx_library' appears within function 'includeNotAtTopLevel'}}8}9 10namespace NS { // expected-note {{begins here}}11  #include "cxx-header.h" // expected-error {{redundant #include of module 'cxx_library' appears within namespace 'NS'}}12}13