blob: 7f5a05ff75aa15f4b371a0420b0afe85c8bd94ab [file] [log] [blame]
Douglas Gregor791215b2009-09-21 20:51:25 +00001struct X { int x; };
2
Douglas Gregor6a684032009-09-28 03:51:44 +00003typedef struct t TYPEDEF;
Douglas Gregor791215b2009-09-21 20:51:25 +00004
5void foo() {
6 int y;
Daniel Dunbara5728872009-12-15 20:14:24 +00007 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:6:9 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
Douglas Gregor119fa682009-09-24 22:57:42 +00008 // CHECK-CC1: y : 0
Douglas Gregor119fa682009-09-24 22:57:42 +00009 // CHECK-CC1: foo : 2
Douglas Gregor6a684032009-09-28 03:51:44 +000010 // CHECK-NOT-CC1: y : 2
11 // CHECK-CC1-NEXT: TYPEDEF : 2