diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-11-20 16:02:55 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@linaro.org> | 2017-11-20 16:02:55 +0000 |
commit | d58952aefb03632bbb5b441d5c0bd330711f0af1 (patch) | |
tree | d046e56bfbd6a40106ae6ab96fafc954f1dfc955 /gcc/testsuite/c-c++-common/tm/volatile-1.c | |
parent | 648f8fc59b2cc39abd24f4c22388b346cdebcc31 (diff) | |
parent | 50221fae802a10fafe95e61d40504a58da33e98f (diff) | |
download | gcc-linaro-dev/sve.tar.gz |
Merge trunk into svelinaro-dev/sve
Diffstat (limited to 'gcc/testsuite/c-c++-common/tm/volatile-1.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/tm/volatile-1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/c-c++-common/tm/volatile-1.c b/gcc/testsuite/c-c++-common/tm/volatile-1.c index eb3799dd972..40b41803555 100644 --- a/gcc/testsuite/c-c++-common/tm/volatile-1.c +++ b/gcc/testsuite/c-c++-common/tm/volatile-1.c @@ -3,7 +3,7 @@ volatile int * p = 0; __attribute ((transaction_safe)) -int f() { +void f() { int x = 0; // ok: not volatile p = &x; // ok: the pointer is not volatile int i = *p; // { dg-error "volatile" "read through volatile glvalue" } |