15 lines · c
1// RUN: %clang_cc1 -verify -std=c23 %s2// RUN: %clang_cc1 -verify=pedantic -std=c17 -pedantic %s3// RUN: %clang_cc1 -verify=compat -std=c23 -Wpre-c23-compat %s4 5// expected-no-diagnostics6 7/* WG14 N2549: Clang 98 * Binary literals9 */10 11int i = 0b01; /* pedantic-warning {{binary integer literals are a C23 extension}}12 compat-warning {{binary integer literals are incompatible with C standards before C23}}13 */14 15