diff -r 000000000000 -r 6474c204b198 js/src/tests/style/BadIncludesOrder-inl.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/tests/style/BadIncludesOrder-inl.h Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,30 @@ +// Note: Each #if scope gets checked separately. + +// These are in reverse order! +#if A +# include "vm/Interpreter-inl.h" +# include "jsscriptinlines.h" +# include "js/Value.h" +# include "ds/LifoAlloc.h" +# include "jsapi.h" +# include +# include "mozilla/HashFunctions.h" +#endif + +// These are in reverse order, but it's ok due to the #if scopes. +#if B +# include "vm/Interpreter-inl.h" +# if C +# include "js/Value.h" +# if D +# include "jsapi.h" +# endif +# include +# endif +# include "mozilla/HashFunctions.h" +#endif + +#include "jsobj.h" +#include "jsfun.h" // out of order +#include "jsscript.h" +#include "jstypes.h"