Welcome to mirror list, hosted at ThFree Co, Russian Federation.

inline.cpp « SemaCXX « test « clang - github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e569300faf77124dc7ec35bcea74eb6b717b6266 (plain)
1
2
3
4
5
// RUN: %clang_cc1 -fsyntax-only -verify %s

// Check that we don't allow illegal uses of inline
// (checking C++-only constructs here)
struct c {inline int a;}; // expected-error{{'inline' can only appear on functions}}