forked from OSchip/llvm-project
10 lines
330 B
C
10 lines
330 B
C
|
// RUN: %clang_cc1 -fsyntax-only -verify -frecovery-ast -fno-recovery-ast-type %s
|
||
|
|
||
|
int call(int); // expected-note {{'call' declared here}}
|
||
|
|
||
|
void test1(int s) {
|
||
|
// verify "assigning to 'int' from incompatible type '<dependent type>'" is
|
||
|
// not emitted.
|
||
|
s = call(); // expected-error {{too few arguments to function call}}
|
||
|
}
|