aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/ByteCode/gh176549.cpp
blob: 42d055e9608c7aa6a27bed072557c92feb52d569 (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify %s

const char a[4] = "abc";
void foo() {
  int i = 0;
  i = 1 > (a + 1, sizeof(a)); // expected-warning {{left operand of comma operator has no effect}}
}