diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-28 18:42:27 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-28 18:42:27 +0000 |
commit | c46111e821664fcdf54d07325a384570972e9cae (patch) | |
tree | ceebb0fcb779eb9f9e664f2f4f5086917bfbd712 /test/Sema/builtins.c | |
parent | deabde24e1712253e483a46d24c0e10f25ebba99 (diff) |
Make the pointer arguments to the __sync_* builtins pointers to
volatile-qualified types. Fixes <rdar://problem/8228293>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109618 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/builtins.c')
-rw-r--r-- | test/Sema/builtins.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/builtins.c b/test/Sema/builtins.c index f2cd3ea360..7d6d54dbce 100644 --- a/test/Sema/builtins.c +++ b/test/Sema/builtins.c @@ -84,3 +84,9 @@ void test_unknown_builtin(int a, int b) { int test13() { __builtin_eh_return(0, 0); // no warning, eh_return never returns. } + +// <rdar://problem/8228293> +void test14() { + int old; + old = __sync_fetch_and_min((volatile int *)&old, 1); +} |