mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
24 lines
1.5 KiB
Java
24 lines
1.5 KiB
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 8349847
|
|
*
|
|
* @compile -XDrawDiagnostics -Xlint:none WerrorLint.java
|
|
* @compile -XDrawDiagnostics -Xlint:none -Werror WerrorLint.java
|
|
* @compile -XDrawDiagnostics -Xlint:none -Werror:empty WerrorLint.java
|
|
* @compile -XDrawDiagnostics -Xlint:none -Werror:strictfp WerrorLint.java
|
|
* @compile/ref=WerrorLint.w2.out -XDrawDiagnostics -Xlint:all WerrorLint.java
|
|
* @compile/fail/ref=WerrorLint.e2.out -XDrawDiagnostics -Xlint:all -Werror WerrorLint.java
|
|
* @compile/fail/ref=WerrorLint.e2.out -XDrawDiagnostics -Xlint:all -Werror:empty WerrorLint.java
|
|
* @compile/fail/ref=WerrorLint.e2.out -XDrawDiagnostics -Xlint:all -Werror:strictfp WerrorLint.java
|
|
* @compile/ref=WerrorLint.w1.out -XDrawDiagnostics WerrorLint.java
|
|
* @compile/fail/ref=WerrorLint.e1.out -XDrawDiagnostics -Werror WerrorLint.java
|
|
* @compile/ref=WerrorLint.w1.out -XDrawDiagnostics -Werror:empty WerrorLint.java
|
|
* @compile/fail/ref=WerrorLint.e1.out -XDrawDiagnostics -Werror:strictfp WerrorLint.java
|
|
*/
|
|
|
|
class WerrorLint {
|
|
strictfp void m() { // [strictfp] - this category is enabled by default
|
|
if (hashCode() == 1) ; // [empty] - this category is disabled by default
|
|
}
|
|
}
|