blob: 6c32dff2d0fe393eb9a27ac0bef2c286ebea4d4f [file] [log] [blame]
// 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);
}