1 /*
   2  * @test /nodynamiccopyright/
   3  * @summary smoke test for sealed and separate compilation
   4  * @compile/fail/ref=TestSeparate_Neg.out -XDrawDiagnostics TestSeparate_Neg.java SealedClasses.java
   5  * @clean *
   6  * @compile SealedClasses.java
   7  * @compile/fail/ref=TestSeparate_Neg.out -XDrawDiagnostics TestSeparate_Neg.java
   8  */
   9 
  10 public class TestSeparate_Neg {
  11     static class C_SCN extends SealedClasses.SC { }
  12     static class C_SACN extends SealedClasses.SAC { }
  13     static class C_SIN implements SealedClasses.SI { }
  14     static interface I_SIN extends SealedClasses.SI { }
  15 }