Changeset d93181a0 in rtems


Ignore:
Timestamp:
Jun 12, 2017, 4:49:51 PM (2 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
9177426
Parents:
9761b98d
git-author:
Joel Sherrill <joel@…> (06/12/17 16:49:51)
git-committer:
Joel Sherrill <joel@…> (06/21/17 17:50:30)
Message:

malloctest/init.c: Disable check maximum size warning to allow error test case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/malloctest/init.c

    r9761b98d rd93181a0  
    12611261   * Verify case where block is too large to calloc.
    12621262   */
     1263#pragma GCC diagnostic push
     1264#pragma GCC diagnostic ignored "-Walloc-size-larger-than=N"
    12631265  p1 = calloc( 1, SIZE_MAX );
     1266#pragma GCC diagnostic pop
    12641267  if (p1) {
    12651268    printf("ERROR on attempt to calloc SIZE_MAX block expected failure.");
Note: See TracChangeset for help on using the changeset viewer.