hotspot/src/share/vm/utilities/debug.cpp
changeset 31340 2f9ff278bb13
parent 30764 fec48bf5a827
child 33105 294e48b4f704
equal deleted inserted replaced
31334:d55c96b36b5f 31340:2f9ff278bb13
   768   frame fr(sp, fp, pc);
   768   frame fr(sp, fp, pc);
   769   print_native_stack(tty, fr, t, buf, sizeof(buf));
   769   print_native_stack(tty, fr, t, buf, sizeof(buf));
   770 }
   770 }
   771 
   771 
   772 #endif // !PRODUCT
   772 #endif // !PRODUCT
       
   773 
       
   774 //////////////////////////////////////////////////////////////////////////////
       
   775 // Test multiple STATIC_ASSERT forms in various scopes.
       
   776 
       
   777 #ifndef PRODUCT
       
   778 
       
   779 // namespace scope
       
   780 STATIC_ASSERT(true);
       
   781 STATIC_ASSERT(true);
       
   782 STATIC_ASSERT(1 == 1);
       
   783 STATIC_ASSERT(0 == 0);
       
   784 
       
   785 void test_multiple_static_assert_forms_in_function_scope() {
       
   786   STATIC_ASSERT(true);
       
   787   STATIC_ASSERT(true);
       
   788   STATIC_ASSERT(0 == 0);
       
   789   STATIC_ASSERT(1 == 1);
       
   790 }
       
   791 
       
   792 // class scope
       
   793 struct TestMultipleStaticAssertFormsInClassScope {
       
   794   STATIC_ASSERT(true);
       
   795   STATIC_ASSERT(true);
       
   796   STATIC_ASSERT(0 == 0);
       
   797   STATIC_ASSERT(1 == 1);
       
   798 };
       
   799 
       
   800 #endif // !PRODUCT