Douglas Gregor | ff59f67 | 2010-01-21 15:46:19 +0000 | [diff] [blame] | 1 | // Note: the run lines follow their respective tests, since line/column |
| 2 | // matter in this test. |
| 3 | void f0(float x, float y); |
| 4 | void f1(); |
| 5 | void test() { |
| 6 | f0(0, 0); |
| 7 | g0(0, 0); |
| 8 | f1(0, 0); |
Tim Northover | 19ae117 | 2013-08-12 12:51:05 +0000 | [diff] [blame] | 9 | // RUN: %clang_cc1 -std=c89 -fsyntax-only -code-completion-at=%s:6:6 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s |
Douglas Gregor | ff59f67 | 2010-01-21 15:46:19 +0000 | [diff] [blame] | 10 | // CHECK-CC1: f0(<#float x#>, float y) |
Tim Northover | 19ae117 | 2013-08-12 12:51:05 +0000 | [diff] [blame] | 11 | // RUN: %clang_cc1 -std=c89 -fsyntax-only -code-completion-at=%s:6:9 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s |
Douglas Gregor | ff59f67 | 2010-01-21 15:46:19 +0000 | [diff] [blame] | 12 | // CHECK-CC2: f0(float x, <#float y#>) |
Tim Northover | 19ae117 | 2013-08-12 12:51:05 +0000 | [diff] [blame] | 13 | // RUN: %clang_cc1 -std=c89 -fsyntax-only -code-completion-at=%s:8:6 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s |
Douglas Gregor | ff59f67 | 2010-01-21 15:46:19 +0000 | [diff] [blame] | 14 | // CHECK-CC3: f1() |
| 15 | } |