]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, Objective-C: Fix duplicate libobjc cases.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 25 Jan 2024 20:17:42 +0000 (20:17 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 28 Jan 2024 11:03:26 +0000 (11:03 +0000)
Two of the encode testcases include '-lobjc' as their dg-options.
Since the library is already appended as part of the generic testsuite
handling,  this means that two instances appear on the link line leading
to spurious warnings from Darwin's new linker.

gcc/testsuite/ChangeLog:

* obj-c++.dg/encode-10.mm: Remove unneeded '-lobjc' option addition.
* obj-c++.dg/encode-9.mm: Likewise.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/testsuite/obj-c++.dg/encode-10.mm
gcc/testsuite/obj-c++.dg/encode-9.mm

index 2b3af88dcb182064e3fdeb8b091089641394a7cb..2477400b7f347f5e34fb6348ba131c28db7b1120 100644 (file)
@@ -1,5 +1,4 @@
 /* Test for @encode in templates.  */
-/* { dg-options "-lobjc" } */
 /* { dg-do run } */
 #include <string.h>           
 #include <stdlib.h>
index 6b064dfdc09d1ea6aef94bc55776890ce30e7cbe..4fdb5fa50fb777b4c71a3f0a5e59651ca4a9ef90 100644 (file)
@@ -1,5 +1,4 @@
 /* Test than @encode is properly instantiated. */
-/* { dg-options "-lobjc" } */
 /* { dg-do run } */
 
 #include <string.h>