1 // RUN: %clang_cc1 -std=c1x -fsyntax-only -verify %s 2 3 _Static_assert("foo", "string is nonzero"); // expected-error {{static_assert expression is not an integral constant expression}} 4 5 _Static_assert(1, "1 is nonzero"); 6 _Static_assert(0, "0 is nonzero"); // expected-error {{static_assert failed "0 is nonzero"}} 7 8 void foo(void) { 9 _Static_assert(1, "1 is nonzero"); 10 _Static_assert(0, "0 is nonzero"); // expected-error {{static_assert failed "0 is nonzero"}} 11 } 12