aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/ast-crash-doc.cpp
blob: c4959647fc0fbcfd297cd0e4133f2ba9c08b38df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// RUN: rm -rf %t
// RUN: split-file %s %t

// RUN: %clang_cc1 -emit-module -x c++ -fmodules -I %t/Inputs -fmodule-name=aa %t/Inputs/module.modulemap -o %t/aa.pcm
// RUN: rm %t/Inputs/b.h
// RUN: not %clang_cc1 -x c++ -Wdocumentation -ast-dump-all -fmodules -I %t/Inputs -fmodule-file=%t/aa.pcm %t/test.cpp | FileCheck %s

//--- Inputs/module.modulemap
module aa {
    header "a.h"
    header "b.h"
}

//--- Inputs/a.h
// empty file

//--- Inputs/b.h
/// test foo @return
int foo();


//--- test.cpp
#include "a.h"

/// test comment at the primary file

int a = foo();


// CHECK: TranslationUnitDecl