OSDN Git Service

Merge C++ from gomp-20050608-branch.
[pf3gnuchains/gcc-fork.git] / libgomp / testsuite / libgomp.c++ / c++.exp
diff --git a/libgomp/testsuite/libgomp.c++/c++.exp b/libgomp/testsuite/libgomp.c++/c++.exp
new file mode 100644 (file)
index 0000000..ecb4aa9
--- /dev/null
@@ -0,0 +1,20 @@
+set lang_library_path  "../libstdc++-v3/src/.libs"
+set lang_test_file     "${lang_library_path}/libstdc++.a"
+set lang_link_flags    "-lstdc++"
+
+load_lib libgomp-dg.exp
+
+# Initialize dg.
+dg-init
+
+if [file exists "${blddir}/${lang_test_file}"] {
+
+    # Gather a list of all tests.
+    set tests [lsort [glob -nocomplain $srcdir/$subdir/*.C]]
+
+    # Main loop.
+    gfortran-dg-runtest $tests ""
+}
+
+# All done.
+dg-finish