aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoey Ye <joey.ye@arm.com>2014-04-24 08:24:37 +0000
committerJoey Ye <jye2@gcc.gnu.org>2014-04-24 08:24:37 +0000
commit1e7251a72530233484651b91b046917d7b711a59 (patch)
tree69f9c9eceec77d219ed1a2f5d1c21e27d899dc57 /gcc
parent683e3333a78857f44f03bd05a683130f527b5ad0 (diff)
downloadgcc-1e7251a72530233484651b91b046917d7b711a59.zip
gcc-1e7251a72530233484651b91b046917d7b711a59.tar.gz
gcc-1e7251a72530233484651b91b046917d7b711a59.tar.bz2
nsdmi-union5.C: Change to runtime test.
2014-04-24 Joey Ye <joey.ye@arm.com> * g++.dg/cpp0x/nsdmi-union5.C: Change to runtime test. From-SVN: r209738
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/nsdmi-union5.C10
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 40df580..f0770c1 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2014-04-24 Joey Ye <joey.ye@arm.com>
+
+ * g++.dg/cpp0x/nsdmi-union5.C: Change to runtime test.
+
2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* 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 57dfd59..d521b3b 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;
+}