From: Joey Ye Date: Thu, 24 Apr 2014 08:24:37 +0000 (+0000) Subject: nsdmi-union5.C: Change to runtime test. X-Git-Tag: releases/gcc-5.1.0~7957 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e7251a72530233484651b91b046917d7b711a59;p=thirdparty%2Fgcc.git nsdmi-union5.C: Change to runtime test. 2014-04-24 Joey Ye * g++.dg/cpp0x/nsdmi-union5.C: Change to runtime test. From-SVN: r209738 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 40df580a4f14..f0770c1f0e31 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2014-04-24 Joey Ye + + * g++.dg/cpp0x/nsdmi-union5.C: Change to runtime test. + 2014-04-24 Kyrylo Tkachov * lib/target-supports.exp (check_effective_target_vect_bswap): New. diff --git a/gcc/testsuite/g++.dg/cpp0x/nsdmi-union5.C b/gcc/testsuite/g++.dg/cpp0x/nsdmi-union5.C index 57dfd59863b7..d521b3b762e4 100644 --- a/gcc/testsuite/g++.dg/cpp0x/nsdmi-union5.C +++ b/gcc/testsuite/g++.dg/cpp0x/nsdmi-union5.C @@ -1,6 +1,5 @@ // PR c++/58701 -// { dg-require-effective-target c++11 } -// { dg-final { scan-assembler "7" } } +// { dg-do run { target c++11 } } static union { @@ -9,3 +8,10 @@ static union int i = 7; }; }; + +extern "C" void abort(void); +int main() +{ + if (i != 7) abort(); + return 0; +}