1 | // RUN: rm -rf %t && mkdir -p %t |
---|---|
2 | // RUN: clang-doc -output=%t %s 2>&1 | FileCheck %s --implicit-check-not="{{warning|error}}" |
3 | |
4 | // COM: This case triggered an assertion before #141990: |
5 | // COM: clang-doc: llvm-project/clang/lib/AST/Decl.cpp:2985: |
6 | // COM: Expr *clang::ParmVarDecl::getDefaultArg(): Assertion `!hasUninstantiatedDefaultArg() |
7 | // COM: && "Default argument is not yet instantiated!"' failed. |
8 | |
9 | template <class = int> |
10 | class c; |
11 | int e; |
12 | |
13 | template <class> |
14 | class c { |
15 | public: |
16 | void f(int n = e); |
17 | }; |
18 | class B : c<> {}; |
19 |