summaryrefslogtreecommitdiff
path: root/test/Import/template-specialization/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Import/template-specialization/test.cpp')
-rw-r--r--test/Import/template-specialization/test.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Import/template-specialization/test.cpp b/test/Import/template-specialization/test.cpp
index 43996c53a77ed..30df8187602d7 100644
--- a/test/Import/template-specialization/test.cpp
+++ b/test/Import/template-specialization/test.cpp
@@ -1,7 +1,10 @@
// RUN: clang-import-test -import %S/Inputs/T.cpp -expression %s
-// XFAIL: *
+
void expr() {
A<int>::B b1;
A<bool>::B b2;
b1.f + b2.g;
}
+
+static_assert(f<char>() == 0, "");
+static_assert(f<int>() == 4, "");