Print this page
11972 resync smatch


  19                 return -1;
  20         if (_Alignof(a) != _Alignof(int))
  21                 return -1;
  22 
  23         return 0;
  24 }
  25 
  26 /*
  27  * check-name: c11-alignas
  28  * check-command: test-linearize -std=c11 $file
  29  *
  30  * check-error-start
  31 c11-alignas.c:6:25: warning: non-power-of-2 alignment
  32 c11-alignas.c:7:25: warning: non-positive alignment
  33 c11-alignas.c:8:25: warning: non-positive alignment
  34 c11-alignas.c:9:17: error: bad constant expression
  35 c11-alignas.c:10:17: error: Syntax error in unary expression
  36  * check-error-end
  37  *
  38  * check-output-ignore
  39  * check-output-contains: ret\\.32 *\$0
  40  */


  19                 return -1;
  20         if (_Alignof(a) != _Alignof(int))
  21                 return -1;
  22 
  23         return 0;
  24 }
  25 
  26 /*
  27  * check-name: c11-alignas
  28  * check-command: test-linearize -std=c11 $file
  29  *
  30  * check-error-start
  31 c11-alignas.c:6:25: warning: non-power-of-2 alignment
  32 c11-alignas.c:7:25: warning: non-positive alignment
  33 c11-alignas.c:8:25: warning: non-positive alignment
  34 c11-alignas.c:9:17: error: bad constant expression
  35 c11-alignas.c:10:17: error: Syntax error in unary expression
  36  * check-error-end
  37  *
  38  * check-output-ignore
  39  * check-output-contains: ret\\.32 *\\$0
  40  */