diff mbox series

[2/4] Add C++ testing for 'gcc.dg/initpri1-lto.c': 'c-c++-common/initpri1-lto.c'

Message ID 20240604183051.1406924-3-tschwinge@baylibre.com
State New
Headers show
Series [1/4] Consolidate similar C/C++ test cases for 'constructor', 'destructor' function attributes with priority | expand

Commit Message

Thomas Schwinge June 4, 2024, 6:30 p.m. UTC
Similar to TODO
"Consolidate similar C/C++ test cases for 'constructor', 'destructor' function attributes with priority".

	gcc/testsuite/
	* gcc.dg/initpri1-lto.c: Integrate this...
	* c-c++-common/initpri1-lto.c: ... here.
---
 gcc/testsuite/{gcc.dg => c-c++-common}/initpri1-lto.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
 rename gcc/testsuite/{gcc.dg => c-c++-common}/initpri1-lto.c (48%)
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/initpri1-lto.c b/gcc/testsuite/c-c++-common/initpri1-lto.c
similarity index 48%
rename from gcc/testsuite/gcc.dg/initpri1-lto.c
rename to gcc/testsuite/c-c++-common/initpri1-lto.c
index 0c97cf4b1c9..433ef356c7e 100644
--- a/gcc/testsuite/gcc.dg/initpri1-lto.c
+++ b/gcc/testsuite/c-c++-common/initpri1-lto.c
@@ -1,5 +1,6 @@ 
 /* { dg-do run { target init_priority } } */
 /* { dg-require-effective-target lto } */
 /* { dg-options "-flto -O3" } */
+/* Via the magic string "-std=*++" indicate that testing one (the default) C++ standard is sufficient.  */
 
-#include "../c-c++-common/initpri1.c"
+#include "initpri1.c"