[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git] / clang / test / AST / ByteCode / ms.cpp
blob35ffcbccae3b3abbce776d1aa1122d2a692dce30
1 // RUN: %clang_cc1 -verify=ref,both %s -fms-extensions -fcxx-exceptions
2 // RUN: %clang_cc1 -verify=expected,both %s -fexperimental-new-constant-interpreter -fms-extensions -fcxx-exceptions
4 // ref-no-diagnostics
5 // expected-no-diagnostics
7 /// Used to assert because the two parameters to _rotl do not have the same type.
8 static_assert(_rotl(0x01, 5) == 32);
10 static_assert(alignof(__unaligned int) == 1, "");
12 static_assert(__noop() == 0, "");
14 constexpr int noopIsActuallyNoop() {
15 int a = 0;
16 __noop(throw);
17 __noop(++a);
18 __noop(a = 100);
19 return a;
21 static_assert(noopIsActuallyNoop() == 0);