aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features195/textblock
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2019-11-25 11:05:45 -0800
committerAndy Clement <aclement@pivotal.io>2019-11-25 11:05:45 -0800
commitdda1ef9438ba73f35f9c50359705aa6e48c342a6 (patch)
treef4c68ea8093318a5877cc3991d8d3db6cf2a2865 /tests/features195/textblock
parent2704db20ecca12d3bbe514a4f7b84d297937de86 (diff)
downloadaspectj-dda1ef9438ba73f35f9c50359705aa6e48c342a6.tar.gz
aspectj-dda1ef9438ba73f35f9c50359705aa6e48c342a6.zip
first textblock test for Java13
Diffstat (limited to 'tests/features195/textblock')
-rw-r--r--tests/features195/textblock/Code.java9
-rw-r--r--tests/features195/textblock/Code2.java15
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/features195/textblock/Code.java b/tests/features195/textblock/Code.java
new file mode 100644
index 000000000..89df1e537
--- /dev/null
+++ b/tests/features195/textblock/Code.java
@@ -0,0 +1,9 @@
+public class Code {
+ public static void main(String[] argv) {
+ System.out.println("""
+ this is a text
+ block
+ """);
+ }
+}
+
diff --git a/tests/features195/textblock/Code2.java b/tests/features195/textblock/Code2.java
new file mode 100644
index 000000000..f0b39e08b
--- /dev/null
+++ b/tests/features195/textblock/Code2.java
@@ -0,0 +1,15 @@
+public class Code2 {
+ public static void main(String[] argv) {
+ }
+}
+
+aspect X {
+
+ before(): execution(* Code2.main(..)) {
+ System.out.println("""
+ this is a text
+ block in advice
+ """);
+ }
+}
+