Douglas Gregor | 374929f | 2009-09-18 15:37:17 +0000 | [diff] [blame] | 1 | enum X { x }; |
2 | enum Y { y }; | ||||
3 | struct Z { }; | ||||
4 | |||||
5 | void X(); | ||||
6 | |||||
7 | void test() { | ||||
8 | enum X { x }; | ||||
Douglas Gregor | b657f11 | 2009-09-22 21:11:38 +0000 | [diff] [blame] | 9 | enum |
Tim Northover | 931a4fe | 2013-08-12 12:51:05 +0000 | [diff] [blame] | 10 | // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:9:7 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s |
Douglas Gregor | ab0b4f1 | 2010-01-13 23:24:38 +0000 | [diff] [blame] | 11 | // CHECK-CC1: X |
12 | // CHECK-CC1: Y |