diff options
author | Tom de Vries <tdevries@suse.de> | 2018-07-01 15:54:38 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2018-07-01 15:54:38 +0000 |
commit | c2e755187e40754b4e90b5791a62826633e31f05 (patch) | |
tree | 30c572aa56463912576392458591c5852d43dd53 /gcc/testsuite/gcc.dg/guality | |
parent | 2d43b8627742b74aa21665b14a79d71316bbeaf2 (diff) | |
download | gcc-c2e755187e40754b4e90b5791a62826633e31f05.zip gcc-c2e755187e40754b4e90b5791a62826633e31f05.tar.gz gcc-c2e755187e40754b4e90b5791a62826633e31f05.tar.bz2 |
[testsuite/guality] Use relative line numbers in vla-1.c
2018-07-01 Tom de Vries <tdevries@suse.de>
* lib/gcc-dg.exp (get-absolute-line): Handle '.'.
* gcc.dg/guality/vla-1.c: Use relative line numbers.
From-SVN: r262286
Diffstat (limited to 'gcc/testsuite/gcc.dg/guality')
-rw-r--r-- | gcc/testsuite/gcc.dg/guality/vla-1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/guality/vla-1.c b/gcc/testsuite/gcc.dg/guality/vla-1.c index 6514654..264b9f3 100644 --- a/gcc/testsuite/gcc.dg/guality/vla-1.c +++ b/gcc/testsuite/gcc.dg/guality/vla-1.c @@ -13,15 +13,15 @@ int __attribute__((noinline)) f1 (int i) { char a[i + 1]; - a[0] = 5; /* { dg-final { gdb-test 17 "i" "5" } } */ - return a[0]; /* { dg-final { gdb-test 17 "sizeof (a)" "6" } } */ + a[0] = 5; /* { dg-final { gdb-test .+1 "i" "5" } } */ + return a[0]; /* { dg-final { gdb-test . "sizeof (a)" "6" } } */ } int __attribute__((noinline)) f2 (int i) { - short a[i * 2 + 7]; /* { dg-final { gdb-test 24 "i" "5" } } */ - bar (a); /* { dg-final { gdb-test 24 "sizeof (a)" "17 * sizeof (short)" } } */ + short a[i * 2 + 7]; /* { dg-final { gdb-test .+1 "i" "5" } } */ + bar (a); /* { dg-final { gdb-test . "sizeof (a)" "17 * sizeof (short)" } } */ return a[i + 4]; } |