diff options
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Index/Inputs/keep-going-template-instantiations.h | 3 | ||||
| -rw-r--r-- | clang/test/Index/keep-going-template-instantiations.cpp | 5 | ||||
| -rw-r--r-- | clang/test/Index/keep-going.cpp | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/clang/test/Index/Inputs/keep-going-template-instantiations.h b/clang/test/Index/Inputs/keep-going-template-instantiations.h new file mode 100644 index 00000000000..042918b1f8e --- /dev/null +++ b/clang/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/clang/test/Index/keep-going-template-instantiations.cpp b/clang/test/Index/keep-going-template-instantiations.cpp new file mode 100644 index 00000000000..7deef2120ed --- /dev/null +++ b/clang/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/clang/test/Index/keep-going.cpp b/clang/test/Index/keep-going.cpp index b3f29c5d3da..0b2df725a5a 100644 --- a/clang/test/Index/keep-going.cpp +++ b/clang/test/Index/keep-going.cpp @@ -34,5 +34,5 @@ class C : public A<float> { }; // CHECK-KEEP-GOING-ONLY: VarDecl=global_var:1:12 [type=int] [typekind=Int] [isPOD=1] -// 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 |

