special.exp: Add -I${srcdir}/../../libobjc for header files.
authorH.J. Lu <hjl@gnu.org>
Tue, 8 Jan 2002 17:35:09 +0000 (17:35 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 8 Jan 2002 17:35:09 +0000 (09:35 -0800)
2002-01-08  H.J. Lu <hjl@gnu.org>

* objc.dg/special/special.exp: Add -I${srcdir}/../../libobjc
for header files.

From-SVN: r48647

gcc/testsuite/ChangeLog
gcc/testsuite/objc.dg/special/special.exp

index 36eba4c336c714d5421bd23d3c78b86d9f756f5c..4b432d82204296de946ad6b06b3e14c91fc5f6f9 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-08  H.J. Lu <hjl@gnu.org>
+
+       * objc.dg/special/special.exp: Add -I${srcdir}/../../libobjc
+       for header files.
+
 2002-01-08  Geoff Keating  <geoffk@redhat.com>
 
        * gcc.dg/altivec-4.c: Make the 'char' entries signed also for
index 09552a72ad6e6fdb563d699b81f2b2be66fae8a3..464af9898e4ba4149cf7f78be92b2a899f1c3e5e 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
 }