* g++.dg/lto/lto.exp: Add support for C/C++ mix language testing.
* gcc.dg/lto/pr54625-1_0.c: Move from here...
* g++.dg/lto/pr54625-1_0.c: ... to here.
* gcc.dg/lto/pr54625-1_1.C: Likewise.
* g++.dg/lto/pr54625-1_1.C: Likewise.
* gcc.dg/lto/pr54625-2_0.c: Likewise.
* g++.dg/lto/pr54625-2_0.c: Likewise.
* gcc.dg/lto/pr54625-2_1.C: Likewise.
* g++.dg/lto/pr54625-2_1.C: Likewise.
From-SVN: r203862
+2013-10-19 Mike Stump <mikestump@comcast.net>
+
+ * g++.dg/lto/lto.exp: Add support for C/C++ mix language testing.
+
+ * gcc.dg/lto/pr54625-1_0.c: Move from here...
+ * g++.dg/lto/pr54625-1_0.c: ... to here.
+ * gcc.dg/lto/pr54625-1_1.C: Likewise.
+ * g++.dg/lto/pr54625-1_1.C: Likewise.
+ * gcc.dg/lto/pr54625-2_0.c: Likewise.
+ * g++.dg/lto/pr54625-2_0.c: Likewise.
+ * gcc.dg/lto/pr54625-2_1.C: Likewise.
+ * g++.dg/lto/pr54625-2_1.C: Likewise.
+
2013-10-19 Oleg Endo <olegendo@gcc.gnu.org>
* gcc.target/sh/pr54089-3.c: Fix test for load of constant 31.
}
# Main loop.
-foreach src [lsort [find $srcdir/$subdir *_0.C]] {
+foreach src [lsort [find $srcdir/$subdir *_0.\[cC\]]] {
# If we're only testing specific files and this isn't one of them, skip it.
if ![runtest_file_p $runtests $src] then {
continue
--- /dev/null
+/* { dg-lto-do link } */
+/* { dg-extra-ld-options { -r -nostdlib } } */
+
+float a;
+double sin ();
+speex_resampler_init_frac ()
+{
+ a = sin (0);
+}
+
--- /dev/null
+extern "C" double sin (double);
+typedef double UnaryFunType (double);
+class A
+{
+public:
+ int hash ();
+ double lookup (UnaryFunType p1)
+ {
+ int a = hash ();
+ if (p1)
+ return 0;
+ }
+};
+A b;
+void
+math_sin_impl ()
+{
+ b.lookup (sin);
+}
--- /dev/null
+/* { dg-lto-do link } */
+/* { dg-extra-ld-options { -r -nostdlib } } */
+
+float a;
+double sin ();
+update_filter ()
+{
+ a = sin (0);
+}
--- /dev/null
+extern "C" double sin (double);
+typedef double (*UnaryFunType) (double);
+class A
+{
+public:
+ int hash ();
+ void lookup (UnaryFunType p1)
+ {
+ int a = hash ();
+ p1 (0);
+ }
+};
+A b, c;
+void
+math_sin_impl ()
+{
+ b.lookup (sin);
+}
+
+void
+js_math_sqrt ()
+{
+ c.lookup (0);
+}
+++ /dev/null
-/* { dg-lto-do link } */
-/* { dg-extra-ld-options { -r -nostdlib } } */
-
-float a;
-double sin ();
-speex_resampler_init_frac ()
-{
- a = sin (0);
-}
-
+++ /dev/null
-extern "C" double sin (double);
-typedef double UnaryFunType (double);
-class A
-{
-public:
- int hash ();
- double lookup (UnaryFunType p1)
- {
- int a = hash ();
- if (p1)
- return 0;
- }
-};
-A b;
-void
-math_sin_impl ()
-{
- b.lookup (sin);
-}
+++ /dev/null
-/* { dg-lto-do link } */
-/* { dg-extra-ld-options { -r -nostdlib } } */
-
-float a;
-double sin ();
-update_filter ()
-{
- a = sin (0);
-}
+++ /dev/null
-extern "C" double sin (double);
-typedef double (*UnaryFunType) (double);
-class A
-{
-public:
- int hash ();
- void lookup (UnaryFunType p1)
- {
- int a = hash ();
- p1 (0);
- }
-};
-A b, c;
-void
-math_sin_impl ()
-{
- b.lookup (sin);
-}
-
-void
-js_math_sqrt ()
-{
- c.lookup (0);
-}