You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
404 B

// 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);
}