aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nullptr13.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nullptr13.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nullptr13.C12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nullptr13.C b/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nullptr13.C
new file mode 100644
index 0000000..e788c16
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nullptr13.C
@@ -0,0 +1,12 @@
+// { dg-do run { target c++11 } }
+
+// Test typeid
+
+#include <typeinfo>
+
+int main()
+{
+ const decltype(nullptr) mynull = 0;
+ if (typeid(nullptr) != typeid(mynull))
+ __builtin_abort();
+}