summaryrefslogtreecommitdiff
path: root/test/Parser
diff options
context:
space:
mode:
authorarphaman <arphaman@gmail.com>2013-08-03 14:42:50 +0100
committerarphaman <arphaman@gmail.com>2013-08-03 14:42:50 +0100
commitdad140e6a7dcab02bb5fd52d07d0f47a6a7348c8 (patch)
tree0aa305db85d07075f7fe8d2b838499e214285023 /test/Parser
parent5c42945b833399be85ab165afa204aeb10107dea (diff)
downloadflang-dad140e6a7dcab02bb5fd52d07d0f47a6a7348c8.tar.gz
added parsing and sema for computed goto statement
Diffstat (limited to 'test/Parser')
-rw-r--r--test/Parser/computedGoto.f9511
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Parser/computedGoto.f95 b/test/Parser/computedGoto.f95
new file mode 100644
index 0000000000..1520b16e90
--- /dev/null
+++ b/test/Parser/computedGoto.f95
@@ -0,0 +1,11 @@
+! RUN: %flang -fsyntax-only < %s
+PROGRAM gototest
+ INTEGER I
+
+10 I = 0
+20 GOTO(10) I
+ GOTO(10, 20) 3-1
+30 I = 3
+ GOTO(10, 20, 30) I
+
+END PROGRAM