summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/libstdcxx_is_pod_hack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/libstdcxx_is_pod_hack.cpp')
-rw-r--r--test/SemaCXX/libstdcxx_is_pod_hack.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/SemaCXX/libstdcxx_is_pod_hack.cpp b/test/SemaCXX/libstdcxx_is_pod_hack.cpp
index 2e92032..3581c79 100644
--- a/test/SemaCXX/libstdcxx_is_pod_hack.cpp
+++ b/test/SemaCXX/libstdcxx_is_pod_hack.cpp
@@ -11,3 +11,19 @@ struct __is_pod {
};
__is_pod<int> ipi;
+
+// Ditto for __is_same.
+template<typename T>
+struct __is_same {
+};
+
+__is_same<int> isi;
+
+// Another, similar egregious hack for __is_signed, which is a type
+// trait in Embarcadero's compiler but is used as an identifier in
+// libstdc++.
+struct test_is_signed {
+ static const bool __is_signed = true;
+};
+
+bool check_signed = test_is_signed::__is_signed;
OpenPOWER on IntegriCloud