1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -triple x86_64-unknown-windows-msvc -fsyntax-only -verify %s
4 // In C++, the bitfield promotion from long to int does not occur, unlike C.
5 // expected-no-diagnostics
7 int printf(const char *restrict
, ...);
12 long c
: 32; // assumes that int is 32 bits
13 unsigned long d
: 32; // assumes that int is 32 bits
16 void bitfield_promotion() {