Index: gdb/testsuite/gdb.linespec/macro-relative.c |
diff --git a/gdb/testsuite/gdb.base/step-symless.c b/gdb/testsuite/gdb.linespec/macro-relative.c |
similarity index 76% |
copy from gdb/testsuite/gdb.base/step-symless.c |
copy to gdb/testsuite/gdb.linespec/macro-relative.c |
index 97eaf5edc11f56490e1776847e5561009426cf64..7bb40b48611d103c17f692f4da31c825e2feb325 100644 |
--- a/gdb/testsuite/gdb.base/step-symless.c |
+++ b/gdb/testsuite/gdb.linespec/macro-relative.c |
@@ -1,6 +1,6 @@ |
/* This testcase is part of GDB, the GNU debugger. |
- Copyright 2012 Free Software Foundation, Inc. |
+ Copyright 2013 Free Software Foundation, Inc. |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
@@ -15,24 +15,15 @@ |
You should have received a copy of the GNU General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
-static volatile int v; |
+/* GCC cannot compile directly a .h file. */ |
-static void |
-symful (void) |
-{ |
- v++; |
-} |
+/* Use trailing "./header.h" to match the #include line in "one/header.h". */ |
-static void |
-symless (void) |
-{ |
- v++; |
-} |
+#include "../one/./header.h" |
int |
main (void) |
{ |
- symless (); |
- symful (); |
+ header_two_func (); |
return 0; |
} |