Home | History | Annotate | Download | only in Modules
      1 
      2 
      3 
      4 // in diamond-bottom.h: expected-note{{passing argument to parameter 'x' here}}
      5 
      6 void test_diamond(int i, float f, double d, char c) {
      7   top(&i);
      8   left(&f);
      9   right(&d);
     10   bottom(&c);
     11   bottom(&d); // expected-warning{{incompatible pointer types passing 'double *' to parameter of type 'char *'}}
     12 
     13   // Names in multiple places in the diamond.
     14   top_left(&c);
     15 
     16   left_and_right(&i);
     17   struct left_and_right lr;
     18   lr.left = 17;
     19 }
     20 
     21 // RUN: rm -rf %t
     22 // RUN: %clang_cc1 -fmodules -x objective-c -emit-module -fmodule-cache-path %t -fmodule-name=diamond_top %S/Inputs/module.map
     23 // RUN: %clang_cc1 -fmodules -x objective-c -emit-module -fmodule-cache-path %t -fmodule-name=diamond_left %S/Inputs/module.map
     24 // RUN: %clang_cc1 -fmodules -x objective-c -emit-module -fmodule-cache-path %t -fmodule-name=diamond_right %S/Inputs/module.map
     25 // RUN: %clang_cc1 -fmodules -x objective-c -emit-module -fmodule-cache-path %t -fmodule-name=diamond_bottom %S/Inputs/module.map
     26 // RUN: %clang_cc1 -fmodules -x objective-c -emit-pch -fmodule-cache-path %t -o %t.pch %S/Inputs/diamond.h
     27 // RUN: %clang_cc1 -fmodules -x objective-c -fmodule-cache-path %t -include-pch %t.pch %s -verify
     28 // FIXME: When we have a syntax for modules in C, use that.
     29