aboutsummaryrefslogtreecommitdiff
path: root/SingleSource/Regression/C/gcc-c-torture/execute/pr32244-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'SingleSource/Regression/C/gcc-c-torture/execute/pr32244-1.c')
-rw-r--r--SingleSource/Regression/C/gcc-c-torture/execute/pr32244-1.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/SingleSource/Regression/C/gcc-c-torture/execute/pr32244-1.c b/SingleSource/Regression/C/gcc-c-torture/execute/pr32244-1.c
new file mode 100644
index 00000000..afad2565
--- /dev/null
+++ b/SingleSource/Regression/C/gcc-c-torture/execute/pr32244-1.c
@@ -0,0 +1,20 @@
+struct foo
+{
+ unsigned long long b:40;
+} x;
+
+extern void abort (void);
+
+void test1(unsigned long long res)
+{
+ /* The shift is carried out in 40 bit precision. */
+ if (x.b<<32 != res)
+ abort ();
+}
+
+int main()
+{
+ x.b = 0x0100;
+ test1(0);
+ return 0;
+}