Print this page
11972 resync smatch

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/validation/preprocessor/dump-macros.c
          +++ new/usr/src/tools/smatch/src/validation/preprocessor/dump-macros.c
   1    1  #define ABC abc
   2    2  #undef ABC
   3    3  
   4    4  #define DEF def
   5    5  #undef DEF
   6    6  #define DEF xyz
   7    7  
   8    8  #define NYDEF ydef
        9 +
       10 +#define STRING(x) #x
       11 +#define CONCAT(x,y) x ## y
       12 +
       13 +#define unlocks(...) annotate(unlock_func(__VA_ARGS__))
       14 +#define apply(x,...) x(__VA_ARGS__)
       15 +
       16 +int main(int argc, char *argv[])
       17 +{
       18 +        return 0;
       19 +}
   9   20  /*
  10   21   * check-name: dump-macros
  11   22   * check-command: sparse -E -dD -DIJK=ijk -UNDEF -UNYDEF $file
  12   23   *
  13   24   * check-output-ignore
  14      -check-output-pattern-1-times: #define __CHECKER__ 1
       25 +check-output-pattern(1): #define __CHECKER__ 1
  15   26  check-output-contains: #define IJK ijk
  16   27  check-output-contains: #define DEF xyz
  17   28  check-output-contains: #define NYDEF ydef
       29 +check-output-contains: #define STRING(x) #x
       30 +check-output-contains: #define CONCAT(x,y) x ## y
       31 +check-output-contains: #define unlocks(...) annotate(unlock_func(__VA_ARGS__))
       32 +check-output-contains: #define apply(x,...) x(__VA_ARGS__)
       33 +check-output-contains: int main(int argc, char \\*argv\\[\\])
  18   34   */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX