diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2017-01-15 21:04:46 +0000 |
---|---|---|
committer | Yvan Roux <yvan.roux@linaro.org> | 2017-01-15 21:04:46 +0000 |
commit | 12c4cf8e1f0cecabe380647621023dafc3479a2f (patch) | |
tree | 998a65bdbe6815214c71a19fe58b8c67698f792a /gcc/testsuite/gcc.c-torture/execute/pr67226.c | |
parent | b1711f6d485de88bc985a5e23874f79ed0bd63f1 (diff) | |
parent | 9292dc98baf244da9c72b5c1c74ab87d961c381d (diff) |
Merge branches/gcc-4_9-branch rev 239063
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_9-branch@244479 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/pr67226.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pr67226.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr67226.c b/gcc/testsuite/gcc.c-torture/execute/pr67226.c new file mode 100644 index 00000000000..c533496cbc6 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr67226.c @@ -0,0 +1,42 @@ +struct assembly_operand +{ + int type, value, symtype, symflags, marker; +}; + +struct assembly_operand to_input, from_input; + +void __attribute__ ((__noinline__, __noclone__)) +assemblez_1 (int internal_number, struct assembly_operand o1) +{ + if (o1.type != from_input.type) + __builtin_abort (); +} + +void __attribute__ ((__noinline__, __noclone__)) +t0 (struct assembly_operand to, struct assembly_operand from) +{ + if (to.value == 0) + assemblez_1 (32, from); + else + __builtin_abort (); +} + +int +main (void) +{ + to_input.value = 0; + to_input.type = 1; + to_input.symtype = 2; + to_input.symflags = 3; + to_input.marker = 4; + + from_input.value = 5; + from_input.type = 6; + from_input.symtype = 7; + from_input.symflags = 8; + from_input.marker = 9; + + t0 (to_input, from_input); + + return 0; +} |