1*f4a2713aSLionel Sambuc // Note: the run lines follow their respective tests, since line/column 2*f4a2713aSLionel Sambuc // matter in this test. 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc /// Aaa. 5*f4a2713aSLionel Sambuc void T1(float x, float y); 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc /// Bbb. 8*f4a2713aSLionel Sambuc class T2 { 9*f4a2713aSLionel Sambuc public: 10*f4a2713aSLionel Sambuc /// Ccc. 11*f4a2713aSLionel Sambuc void T3(); 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc int T4; ///< Ddd. 14*f4a2713aSLionel Sambuc }; 15*f4a2713aSLionel Sambuc 16*f4a2713aSLionel Sambuc /// Eee. 17*f4a2713aSLionel Sambuc namespace T5 { 18*f4a2713aSLionel Sambuc } 19*f4a2713aSLionel Sambuc test()20*f4a2713aSLionel Sambucvoid test() { 21*f4a2713aSLionel Sambuc 22*f4a2713aSLionel Sambuc T2 t2; 23*f4a2713aSLionel Sambuc t2. 24*f4a2713aSLionel Sambuc } 25*f4a2713aSLionel Sambuc 26*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -code-completion-brief-comments -code-completion-at=%s:21:1 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s 27*f4a2713aSLionel Sambuc // CHECK-CC1: COMPLETION: T1 : [#void#]T1(<#float x#>, <#float y#>) : Aaa. 28*f4a2713aSLionel Sambuc // CHECK-CC1: COMPLETION: T2 : T2 : Bbb. 29*f4a2713aSLionel Sambuc // CHECK-CC1: COMPLETION: T5 : T5:: : Eee. 30*f4a2713aSLionel Sambuc 31*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -code-completion-brief-comments -code-completion-at=%s:23:6 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s 32*f4a2713aSLionel Sambuc // CHECK-CC2: COMPLETION: T3 : [#void#]T3() : Ccc. 33*f4a2713aSLionel Sambuc // CHECK-CC2: COMPLETION: T4 : [#int#]T4 : Ddd. 34