[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / SemaObjCXX / instantiate-property-access.mm
blob8d5c201a80a1913e5c74052d7b00588cb29c12ba
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 class C {};
5 bool operator == (C c1, C c2);
7 bool operator == (C c1, int i);
8 bool operator == (int i, C c2);
10 C operator += (C c1, C c2);
12 enum TextureType { TextureType3D  };
14 @interface Texture
15 @property  int textureType;
16 @property  C c;
17 @end
19 template <typename> class Framebuffer {
20 public:
21   Texture **color_attachment;  
22   Framebuffer();
25 template <typename T> Framebuffer<T>::Framebuffer() {
26   (void)(color_attachment[0].textureType == TextureType3D);
27   color_attachment[0].textureType += 1;
28   (void)(color_attachment[0].c == color_attachment[0].c);
29   (void)(color_attachment[0].c == 1);
30   (void)(1 == color_attachment[0].c);
33 void foo() {
34   Framebuffer<int>();