-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge needed march release followups into mesh nodes (#6786)
Merges the following changes into mesh nodes to fix a known bug that required a point release in the march release branch and also some build fixes for new visual studio diagnostics. 9ca52f4 Add duplicate pragma (#6732) 7809c0b Remove Windows C++ redist hack (#6692) 33277a1 Workaround broken GitHub runner images (#6683) 1b9a796 [Sema] Check FunctionDecl has identifier before getName. (#6439) (#6457)
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// RUN: %dxc -Tps_6_0 -verify %s | ||
|
||
// expected-error@+1 {{overloading non-member 'operator==' is not allowed}} | ||
bool operator==(int lhs, int rhs) { | ||
return true; | ||
} | ||
|
||
struct A { | ||
float a; | ||
int b; | ||
}; | ||
|
||
// expected-error@+1 {{overloading non-member 'operator>' is not allowed}} | ||
bool operator>(A a0, A a1) { | ||
return a1.a > a0.a && a1.b > a0.b; | ||
} | ||
// expected-error@+1 {{overloading non-member 'operator==' is not allowed}} | ||
bool operator==(A a0, int i) { | ||
return a0.b == i; | ||
} | ||
// expected-error@+1 {{overloading non-member 'operator<' is not allowed}} | ||
bool operator<(A a0, float f) { | ||
return a0.a < f; | ||
} | ||
// expected-error@+1 {{overloading 'operator++' is not allowed}} | ||
A operator++(A a0) { | ||
a0.a++; | ||
a0.b++; | ||
return a0; | ||
} | ||
|
||
void main() {} |