• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang -O3 -emit-llvm -S -o %t %s
2 // RUN: grep 'ret i64 4294967292' %t | count 2
3 // RUN: grep 'ret i64 -4' %t | count 1
4 
f0(void)5 long long f0(void) {
6  struct { unsigned f0 : 32; } x = { 18 };
7  return (long long) (x.f0 - (int) 22);
8 }
9 
f1(void)10 long long f1(void) {
11  struct { unsigned f0 : 31; } x = { 18 };
12  return (long long) (x.f0 - (int) 22);
13 }
14 
f2(void)15 long long f2(void) {
16  struct { unsigned f0     ; } x = { 18 };
17  return (long long) (x.f0 - (int) 22);
18 }
19