summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/exceptions-seh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/exceptions-seh.cpp')
-rw-r--r--clang/test/SemaCXX/exceptions-seh.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/test/SemaCXX/exceptions-seh.cpp b/clang/test/SemaCXX/exceptions-seh.cpp
index 1d8cc4917e9..02bb786160d 100644
--- a/clang/test/SemaCXX/exceptions-seh.cpp
+++ b/clang/test/SemaCXX/exceptions-seh.cpp
@@ -39,14 +39,13 @@ void instantiate_bad_scope_tmpl() {
}
#if __cplusplus < 201103L
-// FIXME: Diagnose this case. For now we produce undef in codegen.
template <typename T, T FN()>
T func_template() {
- return FN();
+ return FN(); // expected-error 2{{builtin functions must be directly called}}
}
void inject_builtins() {
- func_template<void *, __exception_info>();
- func_template<unsigned long, __exception_code>();
+ func_template<void *, __exception_info>(); // expected-note {{instantiation of}}
+ func_template<unsigned long, __exception_code>(); // expected-note {{instantiation of}}
}
#endif
OpenPOWER on IntegriCloud