OSDN Git Service
(root)
/
gb-231r1-is01
/
GB_2.3_IS01.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
original
[gb-231r1-is01/GB_2.3_IS01.git]
/
system
/
core
/
libacc
/
tests
/
data
/
assignment.c
diff --git a/system/core/libacc/tests/data/assignment.c
b/system/core/libacc/tests/data/assignment.c
new file mode 100644
(file)
index 0000000..
4fc7801
--- /dev/null
+++ b/
system/core/libacc/tests/data/assignment.c
@@ -0,0
+1,9
@@
+int main() {
+ int a = 0;
+ int b = 1;
+ a = b = 2; // Test that "b = 2" generates an rvalue.
+ if (a = 7) { // Test that a = 7 generates an rvalue.
+ b = 3;
+ }
+ return a;
+}