diff gcc/testsuite/c-c++-common/pr43395.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line diff
--- a/gcc/testsuite/c-c++-common/pr43395.c	Fri Oct 27 22:46:09 2017 +0900
+++ b/gcc/testsuite/c-c++-common/pr43395.c	Thu Oct 25 07:37:49 2018 +0900
@@ -5,27 +5,24 @@
 void *
 foo (void)
 {
- lab: /* { dg-line foo_lab } */
+ lab:
   return &&lab;
-/* { dg-warning "function returns address of label" "" { target c } .-1 } */
-/* { dg-warning "address of label" "" { target c++ } foo_lab } */
+/* { dg-warning "address of label" "" { target *-*-* } .-1 } */
 }
 
 void *
 bar (void)
 {
   __label__ lab;
- lab: /* { dg-line bar_lab } */
+ lab:
   return &&lab;
-/* { dg-warning "function returns address of label" "" { target c } .-1 } */
-/* { dg-warning "address of label" "" { target c++ } bar_lab } */
+/* { dg-warning "address of label" "" { target *-*-* } .-1 } */
 }
 
 void *
 baz (void)
 {
-  int i; /* { dg-line baz_i } */
+  int i;
   return &i;
-/* { dg-warning "function returns address of local variable" "" { target c } .-1 } */
-/* { dg-warning "address of local variable" "" { target c++ } baz_i } */
+/* { dg-warning "address of local variable" "" { target *-*-* } .-1 } */
 }