brintos

brintos / llvm-project-archived public Read only

0
0
Text · 565 B · 22ead72 Raw
23 lines · c
1// RUN: rm -rf %t2// RUN: split-file %s %t3// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -I%t %t/tu.c -fsyntax-only \4// RUN:   -verify 2>&1 | FileCheck %s5 6//--- module.modulemap7 8module A {9  header "A.h"10}11 12//--- A.h13 14//--- tu.c15 16#pragma clang __debug module_map A // expected-warning{{unknown module 'A'}}17#pragma clang __debug module_lookup B // expected-warning{{unable to find module 'B'}}18#pragma clang __debug module_lookup A // does header search for A19#pragma clang __debug module_map A // now finds module A20 21// CHECK: module A22// CHECK: module A23