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