M7350/system/core/libacc/tests/data/assignment.c
2024-09-09 08:52:07 +00:00

10 lines
194 B
C

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;
}