brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · cfeac40 Raw
34 lines · cpp
1void foo(int a, int b);2void foo(int a, int b, int c);3 4void test() {5  foo(10, );6  // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):10 %s -o - \7  // RUN: | FileCheck -check-prefix=CHECK-CC1 %s8  // CHECK-CC1: OPENING_PAREN_LOC: {{.*}}paren_locs.cpp:5:69 10#define FOO foo(11  FOO 10, );12#undef FOO13  // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-2):10 %s -o - \14  // RUN: | FileCheck -check-prefix=CHECK-CC2 %s15  // CHECK-CC2: OPENING_PAREN_LOC: {{.*}}paren_locs.cpp:11:316 17  struct Foo {18    Foo(int a, int b);19    Foo(int a, int b, int c);20  };21  Foo a(10, );22  // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):12 %s -o - \23  // RUN: | FileCheck -check-prefix=CHECK-CC3 %s24  // CHECK-CC3: OPENING_PAREN_LOC: {{.*}}paren_locs.cpp:21:825  Foo(10, );26  // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):10 %s -o - \27  // RUN: | FileCheck -check-prefix=CHECK-CC4 %s28  // CHECK-CC4: OPENING_PAREN_LOC: {{.*}}paren_locs.cpp:25:629  new Foo(10, );30  // RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-1):15 %s -o - \31  // RUN: | FileCheck -check-prefix=CHECK-CC5 %s32  // CHECK-CC5: OPENING_PAREN_LOC: {{.*}}paren_locs.cpp:29:1033}34