| 1 |
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying |
| 2 |
file Copyright.txt or https://cmake.org/licensing#kwsys for details. */ |
| 3 |
#include "kwsysPrivate.h" |
| 4 |
#include KWSYS_HEADER(Configure.hxx) |
| 5 |
|
| 6 |
// Work-around CMake dependency scanning limitation. This must |
| 7 |
// duplicate the above list of headers. |
| 8 |
#if 0 |
| 9 |
# include "Configure.hxx.in" |
| 10 |
#endif |
| 11 |
|
| 12 |
static bool testFallthrough(int n) |
| 13 |
{ |
| 14 |
int r = 0; |
| 15 |
switch (n) { |
| 16 |
case 1: |
| 17 |
++r; |
| 18 |
KWSYS_FALLTHROUGH; |
| 19 |
default: |
| 20 |
++r; |
| 21 |
} |
| 22 |
return r == 2; |
| 23 |
} |
| 24 |
|
| 25 |
int testConfigure(int, char*[]) |
| 26 |
{ |
| 27 |
bool res = true; |
| 28 |
res = testFallthrough(1) && res; |
| 29 |
return res ? 0 : 1; |
| 30 |
} |