OSDN Git Service

2002-01-08 H.J. Lu <hjl@gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / objc.dg / special / special.exp
index 09552a7..464af98 100644 (file)
@@ -33,11 +33,11 @@ dg-init
 # This test is special because we must compile two different modules,
 # unclaimed-category-1a.m and unclaimed-category-1.m, then link
 # together, then run the resulting executable.
-set lines [objc_target_compile "$srcdir/$subdir/unclaimed-category-1a.m" "unclaimed-category-1a.o" object ""]
+set lines [objc_target_compile "$srcdir/$subdir/unclaimed-category-1a.m" "unclaimed-category-1a.o" object "additional_flags=-I${srcdir}/../../libobjc"]
 if ![string match "" $lines] then {
     fail "unclaimed-category-1a.o"
 } else {
-    dg-runtest "$srcdir/$subdir/unclaimed-category-1.m" "unclaimed-category-1a.o" "
+    dg-runtest "$srcdir/$subdir/unclaimed-category-1.m" "unclaimed-category-1a.o" "-I${srcdir}/../../libobjc"
     file delete unclaimed-category-1a.o
 }