1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only %s 2*0a6a1f1dSLionel Sambuc // Make sure OpenBSD's bounded extension is accepted. 3*0a6a1f1dSLionel Sambuc 4*0a6a1f1dSLionel Sambuc typedef long ssize_t; 5*0a6a1f1dSLionel Sambuc typedef unsigned long size_t; 6*0a6a1f1dSLionel Sambuc typedef struct FILE FILE; 7*0a6a1f1dSLionel Sambuc 8*0a6a1f1dSLionel Sambuc ssize_t read(int, void *, size_t) 9*0a6a1f1dSLionel Sambuc __attribute__((__bounded__(__buffer__,2,3))); 10*0a6a1f1dSLionel Sambuc int readlink(const char *, char *, size_t) 11*0a6a1f1dSLionel Sambuc __attribute__((__bounded__(__string__,2,3))); 12*0a6a1f1dSLionel Sambuc size_t fread(void *, size_t, size_t, FILE *) 13*0a6a1f1dSLionel Sambuc __attribute__((__bounded__(__size__,1,3,2))); 14*0a6a1f1dSLionel Sambuc char *getwd(char *) 15*0a6a1f1dSLionel Sambuc __attribute__((__bounded__(__minbytes__,1,1024))); 16