root/test/error/tuple_val_select_undef.cpp

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. main

#include "Halide.h"
#include <stdio.h>

using namespace Halide;
using namespace Halide::Internal;

int main(int argc, char **argv) {
    Var x("x");
    Func f("f");

    // Should result in an error
    f(x) = {x, select(x < 20, 20*x, undef<int>())};
    f.realize(10);

    printf("Success!\n");
    return 0;
}

/* [<][>][^][v][top][bottom][index][help] */