-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for extern and extern pragma processing
- Loading branch information
1 parent
2925a27
commit a28c904
Showing
9 changed files
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# "Empty" stub declarations are bad | ||
# "Empty" extern declarations ar bad | ||
|
||
STUB | ||
EXTERN | ||
|
||
H 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# "Empty" stub declarations are bad | ||
|
||
STUB | ||
|
||
H 0 |
5 changes: 5 additions & 0 deletions
5
tests/bad-test-files/bad-pragma-extern-type-string-syntax.quil
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Pragma extern type strings have a grammar | ||
|
||
PRAGMA EXTERN foo "(x y z)" | ||
|
||
H 0 |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Basic use of extern and call | ||
|
||
EXTERN foo | ||
DECLARE x INTEGER | ||
X 0 | ||
CALL foo x 10 | ||
CNOT 1 2 | ||
|
File renamed without changes.