diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/20061005-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20061005-1.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20061005-1.c b/gcc/testsuite/gcc.c-torture/compile/20061005-1.c new file mode 100644 index 000000000..a433509ae --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20061005-1.c @@ -0,0 +1,23 @@ +/* PR target/28924 */ + +char c; + +void +testc (void) +{ + (void) __sync_fetch_and_add (&c, -1); +} + +short s; + +void +tests (void) +{ + (void) __sync_fetch_and_add (&s, -1); +} + +void +testc2 (void) +{ + (void) __sync_val_compare_and_swap (&c, -1, -3); +} |