summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20101014-2_0.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/lto/20101014-2_0.C')
-rw-r--r--gcc/testsuite/g++.dg/lto/20101014-2_0.C8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/lto/20101014-2_0.C b/gcc/testsuite/g++.dg/lto/20101014-2_0.C
new file mode 100644
index 000000000..0b2a52c61
--- /dev/null
+++ b/gcc/testsuite/g++.dg/lto/20101014-2_0.C
@@ -0,0 +1,8 @@
+// { dg-lto-do assemble }
+
+template<class T, unsigned long l>
+inline unsigned long foo (T (&)[l]) { return l; }
+
+struct S { char *s[4]; S (); };
+
+S::S () { typedef int T[foo (s) == 4 ? 1 : -1]; }