[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / Sema / attr-bounded.c
blob3108fbdc40152222f9fab9eb1f2926c5ae9d46ed
1 // RUN: %clang_cc1 -fsyntax-only %s
2 // Make sure OpenBSD's bounded extension is accepted.
4 typedef long ssize_t;
5 typedef unsigned long size_t;
6 typedef struct FILE FILE;
8 ssize_t read(int, void *, size_t)
9 __attribute__((__bounded__(__buffer__,2,3)));
10 int readlink(const char *, char *, size_t)
11 __attribute__((__bounded__(__string__,2,3)));
12 size_t fread(void *, size_t, size_t, FILE *)
13 __attribute__((__bounded__(__size__,1,3,2)));
14 char *getwd(char *)
15 __attribute__((__bounded__(__minbytes__,1,1024)));