summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit50.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/explicit50.C')
-rwxr-xr-xgcc_arm/testsuite/g++.old-deja/g++.pt/explicit50.C15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit50.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit50.C
new file mode 100755
index 0000000..8c424cc
--- /dev/null
+++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/explicit50.C
@@ -0,0 +1,15 @@
+extern "C" void abort ();
+
+template <class T> int f ()
+{
+ return sizeof(T);
+}
+
+int main ()
+{
+ if (f<long> () != sizeof(long)
+ || f<char> () != sizeof(char)
+ || f<long> () != sizeof(long)
+ || f<long int> () != sizeof(long int))
+ abort ();
+}