Permalink
Browse files

Add submodule tests and additional regression tests

  • Loading branch information...
gklimowicz committed Oct 10, 2018
1 parent 8280c43 commit ce7ccebd6bc9d94cdb13606af7e237131f7516b8
Showing with 2,657 additions and 1 deletion.
  1. +38 −0 include/flang/Error/errmsg-in.n
  2. +24 −0 test/f90_correct/inc/fs23626.mk
  3. +24 −0 test/f90_correct/inc/fs25878_a.mk
  4. +24 −0 test/f90_correct/inc/fs25878_b.mk
  5. +26 −0 test/f90_correct/inc/fs26026.mk
  6. +23 −0 test/f90_correct/inc/submod01.mk
  7. +23 −0 test/f90_correct/inc/submod02.mk
  8. +23 −0 test/f90_correct/inc/submod03_a.mk
  9. +23 −0 test/f90_correct/inc/submod03_b.mk
  10. +23 −0 test/f90_correct/inc/submod04.mk
  11. +23 −0 test/f90_correct/inc/submod05_a.mk
  12. +23 −0 test/f90_correct/inc/submod05_b.mk
  13. +23 −0 test/f90_correct/inc/submod06.mk
  14. +23 −0 test/f90_correct/inc/submod12.mk
  15. +26 −0 test/f90_correct/inc/submod20.mk
  16. +26 −0 test/f90_correct/inc/submod21.mk
  17. +15 −0 test/f90_correct/inc/submod23.mk
  18. +15 −0 test/f90_correct/inc/submod24.mk
  19. +15 −0 test/f90_correct/inc/submod27.mk
  20. +26 −0 test/f90_correct/inc/submod28.mk
  21. +15 −0 test/f90_correct/inc/submod29.mk
  22. +15 −0 test/f90_correct/inc/submod32.mk
  23. +15 −0 test/f90_correct/inc/submod33.mk
  24. +15 −0 test/f90_correct/inc/submod34.mk
  25. +15 −0 test/f90_correct/inc/submod35.mk
  26. +29 −0 test/f90_correct/inc/submod39.mk
  27. +29 −0 test/f90_correct/inc/submod40.mk
  28. +29 −0 test/f90_correct/inc/submod41.mk
  29. +19 −0 test/f90_correct/lit/fs23626.sh
  30. +19 −0 test/f90_correct/lit/fs25878_a.sh
  31. +19 −0 test/f90_correct/lit/fs25878_b.sh
  32. +19 −0 test/f90_correct/lit/fs26026.sh
  33. +19 −0 test/f90_correct/lit/submod01.sh
  34. +19 −0 test/f90_correct/lit/submod02.sh
  35. +19 −0 test/f90_correct/lit/submod03_a.sh
  36. +19 −0 test/f90_correct/lit/submod03_b.sh
  37. +19 −0 test/f90_correct/lit/submod04.sh
  38. +19 −0 test/f90_correct/lit/submod05_a.sh
  39. +19 −0 test/f90_correct/lit/submod05_b.sh
  40. +19 −0 test/f90_correct/lit/submod06.sh
  41. +19 −0 test/f90_correct/lit/submod12.sh
  42. +19 −0 test/f90_correct/lit/submod20.sh
  43. +19 −0 test/f90_correct/lit/submod21.sh
  44. +19 −0 test/f90_correct/lit/submod23.sh
  45. +19 −0 test/f90_correct/lit/submod24.sh
  46. +19 −0 test/f90_correct/lit/submod27.sh
  47. +19 −0 test/f90_correct/lit/submod28.sh
  48. +19 −0 test/f90_correct/lit/submod29.sh
  49. +19 −0 test/f90_correct/lit/submod32.sh
  50. +19 −0 test/f90_correct/lit/submod33.sh
  51. +19 −0 test/f90_correct/lit/submod34.sh
  52. +19 −0 test/f90_correct/lit/submod35.sh
  53. +19 −0 test/f90_correct/lit/submod39.sh
  54. +19 −0 test/f90_correct/lit/submod40.sh
  55. +19 −0 test/f90_correct/lit/submod41.sh
  56. +2 −1 test/f90_correct/makefile
  57. +38 −0 test/f90_correct/src/fs23626.f90
  58. +19 −0 test/f90_correct/src/fs25878_a.f90
  59. +22 −0 test/f90_correct/src/fs25878_b.f90
  60. +42 −0 test/f90_correct/src/fs26026.f90
  61. +29 −0 test/f90_correct/src/inc/submod_neg.mk
  62. +26 −0 test/f90_correct/src/inc/submod_pos.mk
  63. +45 −0 test/f90_correct/src/submod01.f90
  64. +47 −0 test/f90_correct/src/submod02.f90
  65. +47 −0 test/f90_correct/src/submod03_a.f90
  66. +46 −0 test/f90_correct/src/submod03_b.f90
  67. +44 −0 test/f90_correct/src/submod04.f90
  68. +60 −0 test/f90_correct/src/submod05_a.f90
  69. +58 −0 test/f90_correct/src/submod05_b.f90
  70. +64 −0 test/f90_correct/src/submod06.f90
  71. +71 −0 test/f90_correct/src/submod12.f90
  72. +66 −0 test/f90_correct/src/submod20.f90
  73. +82 −0 test/f90_correct/src/submod21.f90
  74. +66 −0 test/f90_correct/src/submod23.f90
  75. +41 −0 test/f90_correct/src/submod24.f90
  76. +55 −0 test/f90_correct/src/submod27.f90
  77. +58 −0 test/f90_correct/src/submod28.f90
  78. +50 −0 test/f90_correct/src/submod29.f90
  79. +52 −0 test/f90_correct/src/submod32.f90
  80. +73 −0 test/f90_correct/src/submod33.f90
  81. +65 −0 test/f90_correct/src/submod34.f90
  82. +119 −0 test/f90_correct/src/submod35.f90
  83. +30 −0 test/f90_correct/src/submod39.f90
  84. +70 −0 test/f90_correct/src/submod40.f90
  85. +29 −0 test/f90_correct/src/submod41.f90
@@ -1470,3 +1470,41 @@ Pragma operator errors.
.MS S 1013 "Static Threadprivate variables are not supported - $"
.MS S 1014 "Global Threadprivate variables are not supported - $"
.MS S 1015 "Cannot access private intrinsic - $"
.MS S 1042 "$ mask expression must be scalar"
A DO CONCURRENT or FORALL mask expression must be scalar.
.MS S 1043 "DO CONCURRENT $ references construct variable $"
A DO CONCURRENT limit or step control expression may not reference an index
name or LOCAL name. A DO CONCURRENT mask expression may not reference a
LOCAL name.
.MS S 1044 "Invalid DO CONCURRENT locality spec variable $"
A name in a DO CONCURRENT locality spec must be a valid variable name in the containing scope.
.MS S 1045 "DO CONCURRENT index name $ may not appear in a locality spec"
.MS S 1046 "Variable $ has multiple DO CONCURRENT locality spec references"
.MS S 1047 "Multiple DO CONCURRENT DEFAULT(NONE) locality specs"
.MS S 1048 "LOCAL/LOCAL_INIT variable $ $"
A DO CONCURRENT LOCAL or LOCAL_INIT variable must not have the ALLOCATABLE,
INTENT (IN), or OPTIONAL attribute, must not be of finalizable type, must
not be a nonpointer polymorphic dummy argument, must not be a an assumed-size
array, and must be permitted to appear in a variable definition context.
.MS S 1049 "Variable $ is not in a DO CONCURRENT locality list"
When DEFAULT(NONE) is specified for a DO CONCURRENT loop, construct variables and variables from containing scopes must appear in a locality spec.
.MS S 1050 "$ DO CONCURRENT construct"
A DO CONCURRENT construct may not contain a RETURN, EXIT, GOTO, or other branch
out of the construct. A CYCLE statement is permitted.
.MS S 1051 "DO CONCURRENT polymorphic variable deallocation - $"
A DO CONCURRENT construct must not contain a statement that might result in
the deallocation of a polymorphic variable.
.MS S 1052 "$ call in DO CONCURRENT construct"
A DO CONCURRENT construct may not contain a call to IEEE_GET_FLAG,
IEEE_SET_HALTING_MODE, or IEEE_GET_HALTING_MODE from intrinsic module
IEEE_EXCEPTIONS.
.MS S 1053 "Duplicate $ index name"
A DO CONCURRENT or FORALL construct or statement may not specify an index name multiple times.
.MS W 1054 "Duplicate subprogram prefix $ is used"
.MS S 1055 "MODULE prefix cannot be inside an abstract interface"
.MS S 1056 "MODULE prefix is only allowed for subprograms that were declared as separate module procedures"
.MS S 1057 "Definition argument name $ does not match declaration argument name $"
.MS S 1058 "The type of definition argument $ does not match its declaration type"
.MS S 1059 "The definition of subprogram $ does not have the same number of arguments as its declaration"
.MS S 1060 "The $ of the definition and declaration of subprogram $ must match"
.MS S 1061 "The definition of function return type of $ does not match its declaration type"
@@ -0,0 +1,24 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build:
@echo ------------------------------------ building test $(TEST)
$(FC) $(FFLAGS) $(LDFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
run:
$(TEST).$(EXE)
verify: ;
@@ -0,0 +1,24 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build:
@echo ------------------------------------ building test $(TEST)
$(FC) $(FFLAGS) $(LDFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXESUFFIX)
run: $(TEST).$(EXESUFFIX)
@echo ------------------------------------ executing test $(TEST)
$(TEST).$(EXESUFFIX)
verify:
@echo PASS
@@ -0,0 +1,24 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build:
@echo ------------------------------------ building test $(TEST)
$(FC) $(FFLAGS) $(LDFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXESUFFIX)
run: $(TEST).$(EXESUFFIX)
@echo ------------------------------------ executing test $(TEST)
$(TEST).$(EXESUFFIX)
verify:
@echo PASS
@@ -0,0 +1,26 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build:
@echo ------------------------------------- building test $@
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
run:
@echo ------------------------------------ executing test $@
./$(TEST).$(EXE)
verify:
@echo ------------------------------------ verifying
@echo test should have printed verification above
@@ -0,0 +1,23 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build:
@echo ------------------------------------- building test $@
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
run:
@echo ------------------------------------ executing test $@
./$(TEST).$(EXE)
verify: ;
@@ -0,0 +1,23 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build:
@echo ------------------------------------- building test $@
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
run:
@echo ------------------------------------ executing test $@
./$(TEST).$(EXE)
verify: ;
@@ -0,0 +1,23 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build:
@echo ------------------------------------- building test $@
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
run:
@echo ------------------------------------ executing test $@
./$(TEST).$(EXE)
verify: ;
@@ -0,0 +1,23 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build:
@echo ------------------------------------- building test $@
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
run:
@echo ------------------------------------ executing test $@
./$(TEST).$(EXE)
verify: ;
@@ -0,0 +1,23 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build:
@echo ------------------------------------- building test $@
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
run:
@echo ------------------------------------ executing test $@
./$(TEST).$(EXE)
verify: ;
@@ -0,0 +1,23 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build:
@echo ------------------------------------- building test $@
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
run:
@echo ------------------------------------ executing test $@
./$(TEST).$(EXE)
verify: ;
@@ -0,0 +1,23 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build:
@echo ------------------------------------- building test $@
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
run:
@echo ------------------------------------ executing test $@
./$(TEST).$(EXE)
verify: ;
@@ -0,0 +1,23 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build:
@echo ------------------------------------- building test $@
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
run:
@echo ------------------------------------ executing test $@
./$(TEST).$(EXE)
verify: ;
@@ -0,0 +1,23 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build:
@echo ------------------------------------- building test $@
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
run:
@echo ------------------------------------ executing test $@
./$(TEST).$(EXE)
verify: ;
@@ -0,0 +1,26 @@
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
build:
@echo ------------------------------------- building test $@
$(FC) $(FFLAGS) $(SRC)/$(TEST).f90 -o $(TEST).$(EXE)
run:
@echo ------------------------------------ executing test $@
./$(TEST).$(EXE)
verify:
@echo ------------------------------------ verifying
@echo test should have printed verification above
Oops, something went wrong.

0 comments on commit ce7cceb

Please sign in to comment.