aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/pr47299.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/pr47299.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/pr47299.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/pr47299.c b/SingleSource/Regression/C/gcc-c-torture/execute/pr47299.c
new file mode 100644
index 00000000..4f3d1f9c
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/pr47299.c
@@ -0,0 +1,17 @@
+/* PR rtl-optimization/47299 */
+
+extern void abort (void);
+
+__attribute__ ((noinline, noclone)) unsigned short
+foo (unsigned char x)
+{
+ return x * 255;
+}
+
+int
+main ()
+{
+ if (foo (0x40) != 0x3fc0)
+ abort ();
+ return 0;
+}