1 // This test uses PrintFunctionNames with -fdelayed-template-parsing because it
2 // happens to use a RecursiveASTVisitor that forces deserialization of AST
5 // RUN: %clang_cc1 -triple %itanium_abi_triple -fdelayed-template-parsing \
6 // RUN: -std=c++14 -emit-pch -o %t.pch %s
7 // RUN: %clang_cc1 -triple %itanium_abi_triple \
8 // RUN: -load %llvmshlibdir/PrintFunctionNames%pluginext \
9 // RUN: -add-plugin print-fns -std=c++14 -include-pch %t.pch %s -emit-llvm \
10 // RUN: -fdelayed-template-parsing -debug-info-kind=limited \
11 // RUN: -o %t.ll 2>&1 | FileCheck --check-prefix=DECLS %s
12 // RUN: FileCheck --check-prefix=IR %s < %t.ll
14 // REQUIRES: plugins, examples
16 // DECLS: top-level-decl: "func"
18 // IR: define {{.*}}void @_Z4funcv()
24 constexpr explicit nullopt_t(int) {}
26 constexpr nullopt_t
nullopt(0);