fix incorrect folder name for julia-0.6.x

Former-commit-id: ef2c7401e0876f22d2f7762d182cfbcd5a7d9c70
This commit is contained in:
2018-06-11 03:28:36 -07:00
parent 5e0e436e4e
commit 0e4acfb8f2
722 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
# This file is a part of Julia. License is MIT: https://julialang.org/license
using Base.Test
ix86 = r"i[356]86"
if Sys.ARCH === :x86_64 || ismatch(ix86, string(Sys.ARCH))
function linear_foo()
x = 4
y = 5
end
rgx = r"%"
buf = IOBuffer()
output=""
#test that the string output is at&t syntax by checking for occurrences of '%'s
code_native(buf,linear_foo,(),:att)
output=String(take!(buf))
@test ismatch(rgx,output)
#test that the code output is intel syntax by checking it has no occurrences of '%'
code_native(buf,linear_foo,(),:intel)
output=String(take!(buf))
@test !(ismatch(rgx,output))
code_native(buf,linear_foo,())
output=String(take!(buf))
@test ismatch(rgx, output)
end