Skip to content

Commit ca77b4e

Browse files
Add test for added annotations
1 parent b06a27d commit ca77b4e

File tree

6 files changed

+35
-0
lines changed

6 files changed

+35
-0
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
409 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@interface ClassAnnotation {
2+
}
3+
4+
@interface MethodAnnotation {
5+
}
6+
7+
@interface FieldAnnotation {
8+
}
9+
10+
@ClassAnnotation
11+
public class annotations
12+
{
13+
@FieldAnnotation
14+
public int x;
15+
16+
@FieldAnnotation
17+
public static int y;
18+
19+
@MethodAnnotation
20+
public void main()
21+
{
22+
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CORE
2+
annotations.class
3+
--verbosity 10 --show-symbol-table
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^Type\.\.\.\.\.\.\.\.: @java::ClassAnnotation struct annotations
7+
^Type\.\.\.\.\.\.\.\.: @java::MethodAnnotation \(struct annotations \*\) -> void$
8+
^Type\.\.\.\.\.\.\.\.: @java::FieldAnnotation int$
9+
--
10+
--
11+
The purpose of the test is ensuring that annotations can be shown in the symbol
12+
table.

0 commit comments

Comments
 (0)