Files
swift-mirror/test/IRGen/asmname.swift
Joe Groff fbd2e4d872 Rename @asmname to @_silgen_name.
This reflects the fact that the attribute's only for compiler-internal use, and isn't really equivalent to C's asm attribute, since it doesn't change the calling convention to be C-compatible.
2015-11-17 14:13:48 -08:00

10 lines
245 B
Swift

// RUN: %target-swift-frontend %s -emit-ir | FileCheck %s
// REQUIRES: CPU=i386_or_x86_64
@_silgen_name("atan2") func atan2test(a: Double, _ b: Double) -> Double
atan2test(0.0, 0.0)
// CHECK: call double @atan2(double {{.*}}, double {{.*}})