Mercurial > hg > CbC > CbC_llvm
view clang/test/Sema/attr-standalonedebug.cpp @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 2e18cbf3894f |
children |
line wrap: on
line source
// RUN: %clang_cc1 %s -verify -fsyntax-only // RUN: %clang_cc1 %s -verify -fsyntax-only -x c #ifdef __cplusplus int a __attribute__((standalone_debug)); // expected-warning {{'standalone_debug' attribute only applies to classes}} void __attribute__((standalone_debug)) b(); // expected-warning {{'standalone_debug' attribute only applies to classes}} struct __attribute__((standalone_debug(1))) c {}; // expected-error {{'standalone_debug' attribute takes no arguments}} #else // Check that attribute only works in C++. struct __attribute__((standalone_debug)) a {}; // expected-warning {{'standalone_debug' attribute ignored}} #endif