brintos

brintos / llvm-project-archived public Read only

0
0
Text · 601 B · c495964 Raw
31 lines · cpp
1// RUN: rm -rf %t2// RUN: split-file %s %t3 4// RUN: %clang_cc1 -emit-module -x c++ -fmodules -I %t/Inputs -fmodule-name=aa %t/Inputs/module.modulemap -o %t/aa.pcm5// RUN: rm %t/Inputs/b.h6// RUN: not %clang_cc1 -x c++ -Wdocumentation -ast-dump-all -fmodules -I %t/Inputs -fmodule-file=%t/aa.pcm %t/test.cpp | FileCheck %s7 8//--- Inputs/module.modulemap9module aa {10    header "a.h"11    header "b.h"12}13 14//--- Inputs/a.h15// empty file16 17//--- Inputs/b.h18/// test foo @return19int foo();20 21 22//--- test.cpp23#include "a.h"24 25/// test comment at the primary file26 27int a = foo();28 29 30// CHECK: TranslationUnitDecl31