[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeCompletion / pragma-macro-token-caching.c
blobbe53eb9c3a888b67f1401fbe5c25ff669bb508ad
2 #define Outer(action) action
4 void completeParam(int param) {
6 Outer(__extension__({ _Pragma("clang diagnostic push") }));
7 param;
10 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:%(line-3):1 %s | FileCheck %s
11 // CHECK: param : [#int#]param
13 void completeParamPragmaError(int param) {
14 Outer(__extension__({ _Pragma(2) })); // expected-error {{_Pragma takes a parenthesized string literal}}
15 param;
18 // RUN: %clang_cc1 -fsyntax-only -verify -code-completion-at=%s:%(line-2):1 %s | FileCheck %s