mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 13:16:06 +00:00

without defining them. This should be an error, but I'm paranoid about "uses" that end up not actually requiring a definition. I'll revisit later. Also, teach IR generation to not set internal linkage on variable declarations, just for safety's sake. Doing so produces an invalid module if the variable is not ultimately defined. Also, fix several places in the test suite where we were using internal functions without definitions. llvm-svn: 126016
14 lines
178 B
C
14 lines
178 B
C
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o %t %s
|
|
|
|
// PR3442
|
|
|
|
void *g(unsigned long len);
|
|
|
|
void
|
|
f(int n)
|
|
{
|
|
unsigned begin_set[n];
|
|
|
|
g(sizeof(begin_set));
|
|
}
|