Home | History | Annotate | Download | only in sharedlib-linksettings
      1 /*
      2  * Copyright (c) 2013 Google Inc. All rights reserved.
      3  * Use of this source code is governed by a BSD-style license that can be
      4  * found in the LICENSE file.
      5  */
      6 
      7 #include <stdio.h>
      8 
      9 /*
     10  * This will fail to compile if TEST_DEFINE was propagated from sharedlib to
     11  * program.
     12  */
     13 #ifdef TEST_DEFINE
     14 #error TEST_DEFINE is already defined!
     15 #endif
     16 
     17 #define TEST_DEFINE 2
     18 
     19 extern int staticLibFunc();
     20 
     21 int main() {
     22   printf("%d\n", staticLibFunc());
     23   printf("%d\n", TEST_DEFINE);
     24   return 0;
     25 }
     26