< prev index next >

src/share/vm/utilities/debug.cpp

Print this page
rev 8476 : [mq]: unique

*** 768,772 **** --- 768,800 ---- frame fr(sp, fp, pc); print_native_stack(tty, fr, t, buf, sizeof(buf)); } #endif // !PRODUCT + + ////////////////////////////////////////////////////////////////////////////// + // Test multiple STATIC_ASSERT forms in various scopes. + + #ifndef PRODUCT + + // namespace scope + STATIC_ASSERT(true); + STATIC_ASSERT(true); + STATIC_ASSERT(1 == 1); + STATIC_ASSERT(0 == 0); + + void test_multiple_static_assert_forms_in_function_scope() { + STATIC_ASSERT(true); + STATIC_ASSERT(true); + STATIC_ASSERT(0 == 0); + STATIC_ASSERT(1 == 1); + } + + // class scope + struct TestMultipleStaticAssertFormsInClassScope { + STATIC_ASSERT(true); + STATIC_ASSERT(true); + STATIC_ASSERT(0 == 0); + STATIC_ASSERT(1 == 1); + }; + + #endif // !PRODUCT
< prev index next >