diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/Index/Inputs/keep-going-template-instantiations.h | 3 | ||||
| -rw-r--r-- | test/Index/keep-going-template-instantiations.cpp | 5 | ||||
| -rw-r--r-- | test/Index/keep-going.cpp | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/test/Index/Inputs/keep-going-template-instantiations.h b/test/Index/Inputs/keep-going-template-instantiations.h new file mode 100644 index 0000000000..042918b1f8 --- /dev/null +++ b/test/Index/Inputs/keep-going-template-instantiations.h @@ -0,0 +1,3 @@ +template<typename T, T v> struct c {}; +using d = c<bool, false>; +struct foo : public d {}; diff --git a/test/Index/keep-going-template-instantiations.cpp b/test/Index/keep-going-template-instantiations.cpp new file mode 100644 index 0000000000..7deef2120e --- /dev/null +++ b/test/Index/keep-going-template-instantiations.cpp @@ -0,0 +1,5 @@ +#include "missing.h" +#include <keep-going-template-instantiations.h> + +// RUN: env CINDEXTEST_KEEP_GOING=1 c-index-test -test-load-source none -I%S/Inputs %s 2>&1 | FileCheck %s +// CHECK-NOT: error: expected class name diff --git a/test/Index/keep-going.cpp b/test/Index/keep-going.cpp index dbfcad32d3..82987c6cf1 100644 --- a/test/Index/keep-going.cpp +++ b/test/Index/keep-going.cpp @@ -25,5 +25,5 @@ class C : public A<float> { }; // CHECK: C++ base class specifier=A<float>:4:7 [access=public isVirtual=false] [type=A<float>] [typekind=Unexposed] [templateargs/1= [type=float] [typekind=Float]] [canonicaltype=A<float>] [canonicaltypekind=Record] [canonicaltemplateargs/1= [type=float] [typekind=Float]] [isPOD=0] [nbFields=1] // CHECK: TemplateRef=A:4:7 [type=] [typekind=Invalid] [isPOD=0] -// CHECK-DIAG: keep-going.cpp:1:10: fatal error: 'missing1.h' file not found -// CHECK-DIAG: keep-going.cpp:8:10: fatal error: 'missing2.h' file not found +// CHECK-DIAG: keep-going.cpp:1:10: error: 'missing1.h' file not found +// CHECK-DIAG: keep-going.cpp:8:10: error: 'missing2.h' file not found |
