diff options
Diffstat (limited to 'clang/test/Coverage/ast-print-func.cpp')
-rw-r--r-- | clang/test/Coverage/ast-print-func.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Coverage/ast-print-func.cpp b/clang/test/Coverage/ast-print-func.cpp new file mode 100644 index 00000000000..46083a75de4 --- /dev/null +++ b/clang/test/Coverage/ast-print-func.cpp @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -ast-print -std=c++14 %s -o %t.1.cpp +// RUN: %clang_cc1 -ast-print -std=c++14 %t.1.cpp -o %t.2.cpp +// RUN: diff %t.1.cpp %t.2.cpp + +auto func_01(int, char) -> double; + +auto func_02(int x) -> int { return 2 + x; } + +void func_03() { + extern void g(), h(); + return; +} |