summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-malloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Account for calling convention specifiers in function definitions in IR test ↵David Blaikie2015-06-291-2/+2
| | | | | | | | | | | | | cases Several tests wouldn't pass when executed on an armv7a_pc_linux triple due to the non-default arm_aapcs calling convention produced on the function definitions in the IR output. Account for this with the application of a little regex. Patch by Ying Yi. llvm-svn: 240971
* Sema: Add support for __declspec(restrict)David Majnemer2015-02-041-5/+5
| | | | | | | | | | __declspec(restrict) and __attribute(malloc) are both handled identically by clang: they are allowed to the noalias LLVM attribute. Seeing as how noalias models the C99 notion of 'restrict', rename the internal clang attribute to Restrict from Malloc. llvm-svn: 228120
* Move a bunch of tests to directly use the CC1 layer. This at least savesChandler Carruth2014-01-151-2/+2
| | | | | | | | | | | a subprocess invocation which is pretty significant on Windows. It also likely saves a bunch of thrashing the host machine needlessly. Finally it makes the tests much more predictable and less dependent on the host. For example 'header_lookup1.c' was passing '-fno-ms-extensions' just to thwart the host detection adding it into the compilation. By runnig CC1 directly we don't have to deal with such oddities. llvm-svn: 199308
* This really seems like a boring set of fixes to our tests to make them moreChandler Carruth2010-11-161-1/+4
| | | | | | | independent of the underlying system. Let me know if any of these are too aggressive. llvm-svn: 119345
* Update tests to use %clang instead of 'clang', and forcibly disable use of 'Daniel Dunbar2009-12-151-2/+2
| | | | | | | clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to garbage). llvm-svn: 91460
* Use clang to run tests which include headers from the system.Daniel Dunbar2009-11-171-2/+2
| | | | llvm-svn: 89085
* Eliminate &&s in tests.Daniel Dunbar2009-11-081-3/+3
| | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
* Change handling of attribute 'malloc' to only accept the attribute on functionTed Kremenek2009-08-151-5/+5
| | | | | | | | | | declarations (and not function pointers). This is consistent with GCC. Accepting this attribute on function pointers means that the attribute should be treated as a type qualifier, which apparently is not what GCC does. We obviously can change this later should we desire to enhance the 'malloc' attribute in this way. llvm-svn: 79060
* Add more attribute 'malloc' test cases involving function pointers.Ted Kremenek2009-08-141-0/+1
| | | | llvm-svn: 79055
* Per Eli Friedman's feedback, handle attribute 'malloc' being applied toTed Kremenek2009-08-141-3/+5
| | | | | | declarations of function pointers. llvm-svn: 79053
* Rename macro to avoid a name clash on FreeBSD.Benjamin Kramer2009-08-111-2/+2
| | | | llvm-svn: 78741
* warn, as gcc does, if __attribute__((malloc)) applied to function returning ↵Ryan Flynn2009-08-091-0/+6
| | | | | | non-pointer type llvm-svn: 78542
* map previously ignored __attribute((malloc)) to noalias attribute of llvm ↵Ryan Flynn2009-08-091-0/+16
function's return llvm-svn: 78541
OpenPOWER on IntegriCloud