diff options
Diffstat (limited to 'test/FrontendC/2008-01-07-UnusualIntSize.c')
-rw-r--r-- | test/FrontendC/2008-01-07-UnusualIntSize.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/FrontendC/2008-01-07-UnusualIntSize.c b/test/FrontendC/2008-01-07-UnusualIntSize.c new file mode 100644 index 0000000..91beaf3 --- /dev/null +++ b/test/FrontendC/2008-01-07-UnusualIntSize.c @@ -0,0 +1,11 @@ +// RUN: %llvmgcc %s -S -o - -O | grep i33 +// PR1721 + +struct s { + unsigned long long u33: 33; +} a, b; + +// This should turn into a real 33-bit add, not a 64-bit add. +_Bool test(void) { + return a.u33 + b.u33 != 0; +} |