aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-06-23 18:23:19 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-06-23 18:23:19 +0000
commit0b0fdc0b8069ded24764ef0cc15b1fd627d817fd (patch)
tree12162f5284b4fcf68a37070bd40b692461072856
parentbb85ec6e3a530dd1264a11a76fb95a87850651fc (diff)
downloadgcc-0b0fdc0b8069ded24764ef0cc15b1fd627d817fd.zip
gcc-0b0fdc0b8069ded24764ef0cc15b1fd627d817fd.tar.gz
gcc-0b0fdc0b8069ded24764ef0cc15b1fd627d817fd.tar.bz2
re PR c/61553 (__atomic_store with non-pointer arg ICE)
PR c/61553 * c-c++-common/pr61553.c (foo): Add dg-error. From-SVN: r211910
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/c-c++-common/pr61553.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 7cdbc91..66db535 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-06-23 Marek Polacek <polacek@redhat.com>
+
+ PR c/61553
+ * c-c++-common/pr61553.c (foo): Add dg-error.
+
2014-06-23 Tobias Burnus <burnus@net-b.de>
* gfortran.dg/coarray_32.f90: New.
diff --git a/gcc/testsuite/c-c++-common/pr61553.c b/gcc/testsuite/c-c++-common/pr61553.c
index fa97e94..8a3b699 100644
--- a/gcc/testsuite/c-c++-common/pr61553.c
+++ b/gcc/testsuite/c-c++-common/pr61553.c
@@ -4,5 +4,5 @@
void
foo (char *s)
{
- __atomic_store (s, (void *) 0, __ATOMIC_SEQ_CST);
+ __atomic_store (s, (void *) 0, __ATOMIC_SEQ_CST); /* { dg-error "size mismatch" } */
}