llvm-project/clang/test/CodeGen/address-space-avr.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
404 B
C
Raw Normal View History

// RUN: %clang_cc1 -triple avr -emit-llvm < %s | FileCheck %s
// Test that function declarations in nonzero address spaces without prototype
// are called correctly.
// CHECK: define void @bar() addrspace(1)
// CHECK: call addrspace(1) void bitcast (void (...) addrspace(1)* @foo to void (i16) addrspace(1)*)(i16 3)
// CHECK: declare void @foo(...) addrspace(1)
void foo();
void bar(void) {
foo(3);
}