aboutsummaryrefslogtreecommitdiff
path: root/test/run_tests.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-02-01 17:25:38 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-02-01 17:25:38 -0700
commit06f6acb4b19cab55dd8637a41c11501bf8e7158e (patch)
tree9d8226f9f2128a91b3038d9b6d739c3b36ee15cf /test/run_tests.cpp
parent122b7b99660f2ce354930749ca545b363bf7849d (diff)
downloadzig-06f6acb4b19cab55dd8637a41c11501bf8e7158e.tar.gz
zig-06f6acb4b19cab55dd8637a41c11501bf8e7158e.zip
inline is a keyword instead of a directive
Diffstat (limited to 'test/run_tests.cpp')
-rw-r--r--test/run_tests.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp
index 83fb14c12a..da8e011b3d 100644
--- a/test/run_tests.cpp
+++ b/test/run_tests.cpp
@@ -2114,8 +2114,7 @@ extern void (*fn_ptr)(void);
#define foo fn_ptr
)SOURCE", 2,
"pub extern var fn_ptr: ?extern fn();",
- R"SOURCE(#attribute("inline")
-pub fn foo() {
+ R"SOURCE(pub inline fn foo() {
(??fn_ptr)()
})SOURCE");
}