Aaron Ballman fb9b3e9a5f Update the status of some C11 and C99 features we support
This updates the status of:

N505 Make qualifiers idempotent
N725 Integer promotion rules
N1311 Initializing static of external variables
2023-01-20 14:50:39 -05:00

20 lines
280 B
C

// RUN: %clang_cc1 -emit-llvm -o - %s
/* WG14 N1311: Yes
* Initializing static or external variables
*/
static int x;
static union {
void *vp;
float f;
int i;
} u;
int main(void) {
return x + u.i;
}
// CHECK: @x ={{.*}}i32 0
// CHECK-NEXT: @u ={{.*}}zeroinitializer