summary refs log tree commit diff stats
path: root/tests/accept/compile
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-laptop>2010-07-23 20:17:12 +0200
committerAndreas Rumpf <andreas@andreas-laptop>2010-07-23 20:17:12 +0200
commit804e2ac89d378b87e0ec8c723f607aa4271c57bb (patch)
treeead60f389a638029f7c1625b0e8961179119e702 /tests/accept/compile
parent5a2163d71d79943a8fcdb34bef9b0bbecb8b40c7 (diff)
downloadNim-804e2ac89d378b87e0ec8c723f607aa4271c57bb.tar.gz
implemented user-defined pragmas
Diffstat (limited to 'tests/accept/compile')
-rw-r--r--tests/accept/compile/tuserpragma.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/accept/compile/tuserpragma.nim b/tests/accept/compile/tuserpragma.nim
new file mode 100644
index 000000000..784baa176
--- /dev/null
+++ b/tests/accept/compile/tuserpragma.nim
@@ -0,0 +1,7 @@
+
+{.pragma: rtl, cdecl, exportc.}
+
+proc myproc(x, y: int): int {.rtl} =
+  nil
+
+