aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-squid-java-plugin/test-resources
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sonar-squid-java-plugin/test-resources')
-rw-r--r--plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/LineCommentAtTheEndOfFile.java3
-rw-r--r--plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/UnicodeEscape.java9
2 files changed, 12 insertions, 0 deletions
diff --git a/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/LineCommentAtTheEndOfFile.java b/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/LineCommentAtTheEndOfFile.java
new file mode 100644
index 00000000000..a9b876911a4
--- /dev/null
+++ b/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/LineCommentAtTheEndOfFile.java
@@ -0,0 +1,3 @@
+public class LineCommentAtTheEndOfFile
+{
+} // EOF on this line \ No newline at end of file
diff --git a/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/UnicodeEscape.java b/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/UnicodeEscape.java
new file mode 100644
index 00000000000..38ea3a84081
--- /dev/null
+++ b/plugins/sonar-squid-java-plugin/test-resources/special_cases/parsingErrors/UnicodeEscape.java
@@ -0,0 +1,9 @@
+public class UnicodeEscape {
+
+ public void foo() {
+ char a = '\u005Cr';
+ char b = '\uuuu005Cr';
+ char c = '\u005c\u005c';
+ }
+
+}