mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-23 13:35:42 -04:00

Added support in clang for GCC function attribute 'artificial'. This attribute is used to control stepping behavior of debugger with respect to inline functions. Patch By: Elizabeth Andrews (eandrews) Differential Revision: https://reviews.llvm.org/D43259 llvm-svn: 325081
5 lines
216 B
C
5 lines
216 B
C
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
inline void __attribute__((artificial)) foo() {}
|
|
void __attribute__((artificial)) bar() {} // expected-warning {{'artificial' attribute only applies to inline functions}}
|