blob: 8581414bf8c3d98e6a7961ff025f0a58d6304f15 [file] [log] [blame]
Douglas Gregorc0265402010-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);
Douglas Gregord8e8a582010-05-25 21:41:55 +00009 // RUN: %clang_cc1 -std=c89 -fsyntax-only -code-completion-at=%s:6:6 %s -o - | FileCheck -check-prefix=CC1 %s
Douglas Gregorc0265402010-01-21 15:46:19 +000010 // CHECK-CC1: f0(<#float x#>, float y)
11 // RUN: %clang_cc1 -std=c89 -fsyntax-only -code-completion-at=%s:6:9 %s -o - | FileCheck -check-prefix=CC2 %s
12 // CHECK-CC2: f0(float x, <#float y#>)
13 // RUN: %clang_cc1 -std=c89 -fsyntax-only -code-completion-at=%s:8:6 %s -o - | FileCheck -check-prefix=CC3 %s
14 // CHECK-CC3: f1()
15}