mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-23 20:46:06 +00:00

specifications in this mode in C++17, since they're part of the function type, so check and diagnose them like we would if exceptions were enabled. Better ideas welcome. llvm-svn: 288220
9 lines
229 B
C++
9 lines
229 B
C++
// RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -verify %s
|
|
// RUN: %clang_cc1 -isystem %S/Inputs -fsyntax-only -verify -std=c++1z %s
|
|
// expected-no-diagnostics
|
|
#include <malloc.h>
|
|
|
|
extern "C" {
|
|
void *malloc(__SIZE_TYPE__);
|
|
}
|