comparison gcc/testsuite/g++.dg/torture/pr84961-1.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 // PR c++/84961
2 // { dg-do compile }
3
4 short a;
5 volatile int b;
6 int c, d;
7
8 void
9 foo ()
10 {
11 asm volatile ("" : "=r" (b = a));
12 }
13
14 void
15 bar ()
16 {
17 asm volatile ("" : "=r" (++c, ++d, b = a));
18 }
19
20 void
21 baz ()
22 {
23 asm volatile ("" : "=r" (--b));
24 }