summaryrefslogtreecommitdiffstats
path: root/tests/new/NulIOException2.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/NulIOException2.java')
-rw-r--r--tests/new/NulIOException2.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/new/NulIOException2.java b/tests/new/NulIOException2.java
new file mode 100644
index 000000000..af42b4eed
--- /dev/null
+++ b/tests/new/NulIOException2.java
@@ -0,0 +1,16 @@
+
+import org.aspectj.testing.Tester;
+
+class Super {
+ Super(Object o){}
+}
+/** windows treats filename "nul" specially, like /dev/null on unix */
+public class NulIOException2 extends Super {
+ public static void main(String[] args) {
+ Object nul = new Object(); // @testcase nul as identifier
+ Object p = new NulIOException2(nul);
+ Tester.check(null != nul, "null nul");
+ Tester.check(null != p, "null NulIOException2");
+ }
+ NulIOException2(Object o) { super(o); }
+}