blob: fe8644595f6774ca0ffdf5a6ee5e96aee433604e [file] [log] [blame]
Douglas Gregorff59f672010-01-21 15:46:19 +00001// Note: the run lines follow their respective tests, since line/column
2// matter in this test.
3void f0(float x, float y);
4void f1();
5void test() {
6 f0(0, 0);
7 g0(0, 0);
8 f1(0, 0);
Tim Northover19ae1172013-08-12 12:51:05 +00009 // RUN: %clang_cc1 -std=c89 -fsyntax-only -code-completion-at=%s:6:6 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
Douglas Gregorff59f672010-01-21 15:46:19 +000010 // CHECK-CC1: f0(<#float x#>, float y)
Tim Northover19ae1172013-08-12 12:51:05 +000011 // RUN: %clang_cc1 -std=c89 -fsyntax-only -code-completion-at=%s:6:9 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
Douglas Gregorff59f672010-01-21 15:46:19 +000012 // CHECK-CC2: f0(float x, <#float y#>)
Tim Northover19ae1172013-08-12 12:51:05 +000013 // RUN: %clang_cc1 -std=c89 -fsyntax-only -code-completion-at=%s:8:6 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
Douglas Gregorff59f672010-01-21 15:46:19 +000014 // CHECK-CC3: f1()
15}