diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 79ec4a98a64d..f10da57971c8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-11-15 Richard Guenther + + PR lto/44989 + * g++.dg/guality/redeclaration1.C: Do not execute for LTO. + 2010-11-15 Nathan Froyd PR preprocessor/45038 diff --git a/gcc/testsuite/g++.dg/guality/redeclaration1.C b/gcc/testsuite/g++.dg/guality/redeclaration1.C index 16f2f0ca4813..93b0750b93c3 100644 --- a/gcc/testsuite/g++.dg/guality/redeclaration1.C +++ b/gcc/testsuite/g++.dg/guality/redeclaration1.C @@ -1,5 +1,6 @@ // { dg-do run } // { dg-options "-g" } +// { dg-skip-if "" { *-*-* } { "-flto" } { "" } } volatile int l; @@ -10,10 +11,10 @@ namespace S f() { int i = 42; - l = i; // { dg-final { gdb-test 13 "i" "42" } } + l = i; // { dg-final { gdb-test 14 "i" "42" } } { extern int i; - l = i; // { dg-final { gdb-test 16 "i" "24" } } + l = i; // { dg-final { gdb-test 17 "i" "24" } } } } }