1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -verify %s 2*f4a2713aSLionel Sambuc test1()3*f4a2713aSLionel Sambucvoid test1() 4*f4a2713aSLionel Sambuc { 5*f4a2713aSLionel Sambuc #pragma clang __debug captured x // expected-warning {{extra tokens at end of #pragma clang __debug captured directive}} 6*f4a2713aSLionel Sambuc { 7*f4a2713aSLionel Sambuc } 8*f4a2713aSLionel Sambuc } 9*f4a2713aSLionel Sambuc test2()10*f4a2713aSLionel Sambucvoid test2() 11*f4a2713aSLionel Sambuc { 12*f4a2713aSLionel Sambuc #pragma clang __debug captured 13*f4a2713aSLionel Sambuc int x; // expected-error {{expected '{'}} 14*f4a2713aSLionel Sambuc } 15