diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-09-21 20:51:25 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-09-21 20:51:25 +0000 |
| commit | 9d64c5e3a515289ae2c7ae80a35ac4e37fa2f4cc (patch) | |
| tree | 75c811d816377004939562ae2ccf4ebc25f02ed0 /clang/test/CodeCompletion | |
| parent | a74039426db114c93768acc1a705aaf09b7f6eb8 (diff) | |
| download | bcm5719-llvm-9d64c5e3a515289ae2c7ae80a35ac4e37fa2f4cc.tar.gz bcm5719-llvm-9d64c5e3a515289ae2c7ae80a35ac4e37fa2f4cc.zip | |
Code completion for ordinary names when we're starting a declaration, expression, or statement
llvm-svn: 82481
Diffstat (limited to 'clang/test/CodeCompletion')
| -rw-r--r-- | clang/test/CodeCompletion/ordinary-name.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/ordinary-name.c b/clang/test/CodeCompletion/ordinary-name.c new file mode 100644 index 00000000000..a532409d606 --- /dev/null +++ b/clang/test/CodeCompletion/ordinary-name.c @@ -0,0 +1,12 @@ +// RUN: clang-cc -fsyntax-only -code-completion-dump=1 %s -o - | FileCheck -check-prefix=CC1 %s && +// RUN: true + +struct X { int x; }; + +typedef struct X TYPEDEF; + +void foo() { + int y; + // CHECK-CC1: y : 0 + // CHECK-NEXT-CC1: TYPEDEF : 2 + // CHECK-NEXT-CC1: foo : 2 |

